DHTML effects

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

doma

Thread Starter
Joined
Sep 19, 2003
Messages
4
I am using FrontPage 2002. I can view the mouse over effects in the preview page. On uploading the files to the internet, the mouse over effect is not there. Can't figure out where the problem lies.
Appreciate any help.
Thanks

doma
-------
Win XP pro
FrntPage 2002
WS_FTP Pro
 
Joined
Mar 28, 2001
Messages
781
This sounds more like a Development question.

Also, you might want to post some of your code so we can take a look at it to see what's wrong.
 

doma

Thread Starter
Joined
Sep 19, 2003
Messages
4
thanks, here is an example code
doma

<a target="main" href="title_one.htm" dynamicanimation="fpAnimformatRolloverFP1" fprolloverstyle="color: #808080; text-decoration: none" onmouseover="rollIn(this)" onmouseout="rollOut(this)" language="Javascript1.2">
<font color="#000000">Title one</font></a></font></p>
 
Joined
Mar 28, 2001
Messages
781
Ok. What is the mouse over effect supposed to do. Also, could you post the Javascript functions ("rollIn" & "rollOut")
 

doma

Thread Starter
Joined
Sep 19, 2003
Messages
4
thanks for bearing with me
the effect intended is to remove the underline on mouse over.
here is the whole page code

<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 1</title>
<script language="JavaScript" fptype="dynamicanimation">
<!--
function dynAnimation() {}
function clickSwapImg() {}
//-->
</script>
<script language="JavaScript1.2" fptype="dynamicanimation" src="file:///C:/Documents%20and%20Settings/user/My%20Documents/My%20Webs/animate.js">
</script>
</head>

<body onload="dynAnimation()" language="Javascript1.2">

<p><font size="1" face="Verdana">
<a target="main" href="file:///C:/Documents%20and%20Settings/user/My%20Documents/My%20Webs/assad/title_one.htm" dynamicanimation="fpAnimformatRolloverFP1" fprolloverstyle="color: #808080; text-decoration: none" onmouseover="rollIn(this)" onmouseout="rollOut(this)" language="Javascript1.2">
<font color="#000000">Title one</font></a></font></p>

</body>

</html>
 
Joined
Mar 28, 2001
Messages
781
Here's a simple example that you're trying to get (I think).

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
<!--
a:hover#link1
{
text-decoration:none;
}
-->
</style>
</head>
<body>
<a href="http://www.google.com" id="link1">This is the link text</a>
</body>
</html>
 
Joined
Apr 30, 2001
Messages
2,636
Here is the more complicated way using onmouseover and onmouseout. Works in IE, Gecko-based browsers, and opera.

<html>
<head>
<title>New Page 1</title>
<script type="text/javascript">
function removeunderline()
{
if (document.getElementById)
{
document.getElementById('link1').style.textDecoration='none';
}
}
function underline()
{
if (document.getElementById)
{
document.getElementById('link1').style.textDecoration='underline';
}
}
</script>
</head>
<body>
<p><a id="link1" href="http://www.google.com" onmouseover="javascript:removeunderline()" onmouseout="javascript:underline()" >Google.com</a></p>
</body>
</html>

There are certains reasons why you might want to use this way, but using the simple version is suggested.
 

doma

Thread Starter
Joined
Sep 19, 2003
Messages
4
Mithrihall and Shadow2531

Many thanks and appreciation

doma
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

Top