FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Solve My Problem for 10 $FRIH!!

 


NjRocket
Hey guys, it seems like my mouseover script isnt working. It was working a couple of days ago and it seems to have stopped working. I'm not sure if that was because of me adding scripts and screwing something up perhaps. If someone can find the exact problem to why my mouseover isnt working, than 20 Frih is in order for that person. The mouseover i'm talking about is right under the banner, images such as (Home,poker,sports,forums ect.) should have a mouseover when you hover the mouse over them. Thanks for your time guys.

www.topsportlinks.frih.net
bladesage
Code:
<img border="0" src="images/titlebar_07.gif" width="76" height="37" hsrc="images/mouseover_07.gif">


Hsrc? Is that supposed to be the rollover? I don't see anything else for that...I checked my books on javascript and on HTML, and nothing like that shows up anywhere in sight.

There are two methods I know of for rollovers.

Number 1:
Code:
<img src="pic.tif" onmouseover="document.pic1.src = 'newpic.png'" onmouseout="document.pic1.src = 'pic.tif'" name="pic1">


And if you're looking for more than one rollover with less typing, this method is best.

Number 2:
Code:
<head>
<script type="text/javascript" language="javascript">

var src1 = "pic.tif";
var src2 = "pic2.png";
var src3 = "apic.gif";
var src4 = "thepic.jpg";

function swapit(img,nsrc)
 {
 document.getElementById(img).src = nsrc;
 }

</script>
</head>

<img src="pic.tif" id="im1" onmouseover="swapit('im1',src2)" onmouseout="swapit('im1',src1)">

<img src="apic.gif" onmouseover="swapit('im2',src4)" onmouseout="swapit('im2',src3)" id="im2">


That should work out just fine, and it's very generic and flexable.

If there are any more questions, let me know, and I'll be more than happy to assist you further.


Last edited by bladesage on Sat Jun 17, 2006 5:51 am; edited 1 time in total
NjRocket
i think i might have to change the actual coding, but i would rather not change it. How is it possible that its working in frontpage, but not on the site. Starting to annoy me, i can't find where the problem is.
Reply to topic    Frihost Forum Index -> Miscellaneous -> Marketplace

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.