>>>  Home   User-Center   Board
     
 

 
Post new topic   Reply to topic    Webhosting Forum » Java & Javascript » Javascript w/ mousover
View previous topic :: View next topic  
Author Message
FantasyKnight5
Funnilein


Joined: 21 Aug 2005
Posts: 3

PostPosted: 18.08.06 01:40    Post subject: Javascript w/ mousover Reply with quote
I have a javascript issue w/ mouse overs. It is the same code that is used on another site I help with but it's not visible on my funpic site. Is javascript turned on for funpic sites or am I missing teh big picture?


Thanks,
FK5
Back to top
View user's profile Send private message
Jefftheman45
Fun-Member


Joined: 31 Dec 2005
Posts: 82
Location: USA

PostPosted: 18.08.06 03:12    Post subject: Reply with quote
Although Funpic did put ads on, they didn't disable Javascript. Post the code.
_________________
http://jefftheman45.funpic.org
http://jefftheman45.funpic.org/v4
Back to top
View user's profile Send private message
FantasyKnight5
Funnilein


Joined: 21 Aug 2005
Posts: 3

PostPosted: 18.08.06 04:55    Post subject: Reply with quote
Code:
<STYLE TYPE='text/css'>
<!--
.deepsea, .deepsea TD, .deepsea TH
{
background-image:url('images/farm/raceopening.gif');
background-repeat: no-repeat;
background-position: top center;
}
-->
</STYLE>


<script type=\"text/javascript\">
function ddrivetip(thetext, thecolor, thewidth){

if (ns6||ie){

if (typeof thewidth!=\"undefined\") tipobj.style.width=thewidth+\"px\"

if (typeof thecolor!=\"undefined\" && thecolor!=\"\") tipobj.style.backgroundColor=thecolor

tipobj.innerHTML=thetext

enabletip=true

return false

</script>

<a HREF='' onMouseover=\"ddrivetip('

','black')\"; onMouseout=\"hideddrivetip()\">

_________________
[b:39a5423de5][u:39a5423de5][i:39a5423de5]Final Fantasy Computer RPG![/b:39a5423de5][/u:39a5423de5][/i:39a5423de5]
http://fantasyknight5.fa.funpic.org/forum
Back to top
View user's profile Send private message
Jefftheman45
Fun-Member


Joined: 31 Dec 2005
Posts: 82
Location: USA

PostPosted: 19.08.06 07:00    Post subject: Reply with quote
I don't see tipobj ever being defined. That might cause an error. Also, I don't think line breaks are allowed in function calls.

Code:
<a HREF='' onMouseover=\"ddrivetip('

','black')\"; onMouseout=\"hideddrivetip()\">


Should be

Code:
<a HREF='' onMouseover=\"ddrivetip('\n\n','black')\"; onMouseout=\"hideddrivetip()\">


If that doesn't help, I'm out of ideas. The people here can offer more help, though:

http://boards.gamefaqs.com/gfaqs/gentopic.php?board=236
_________________
http://jefftheman45.funpic.org
http://jefftheman45.funpic.org/v4
Back to top
View user's profile Send private message
ven
Moderator


Joined: 10 Dec 2004
Posts: 2064
Location: USA

PostPosted: 19.08.06 20:57    Post subject: Reply with quote
Er... the JS function names being used came from here: http://www.dynamicdrive.com/dynamicindex5/dhtmltooltip.htm
_________________

Back to top
View user's profile Send private message
Post new topic   Reply to topic    Webhosting Forum » Java & Javascript

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Impressum Datenschutz