Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Sep 2003
    Posts
    84
    Member #
    2930
    Hi, im having problems displaying rollovers on my website. The problem is before when someone visited my site and put mouseover a button a error came up so in dreamwaever i changed the directory of the images manually as the root was still to the image on my hardrive, but now i have changed that nothing happens at all you can put the mouse over the button without an error but the button doesnt change colour!

    Check it out: Click Here

    Here is the code that i think is in question:

    <a onmouseover="changeImages( /*CMP*/'music',/*URL*/'http://www.bulletproofmonkeys.co.uk/menubuttons/music1.gif');return true" onmouseout="changeImages( /*CMP*/'music',/*URL*/'http://www.bulletproofmonkeys.co.uk/menubuttons/music.gif');return true" href="music.htm"><img src="http://www.bulletproofmonkeys.co.uk/menubuttons/music.gif" alt="" name="music" height="35" width="120" border="0"></a></div>
    <div id="layer3">
    <a onmouseover="changeImages( /*CMP*/'band',/*URL*/'http://www.bulletproofmonkeys.co.uk/menubuttons/band1.gif');return true" onmouseout="changeImages( /*CMP*/'band',/*URL*/'http://www.bulletproofmonkeys.co.uk/menubuttons/band.gif');return true" href="band.htm"><img src="http://www.bulletproofmonkeys.co.uk/menubuttons/band.gif" alt="" name="band" height="35" width="120" border="0"></a></div>
    <div id="layer7">
    <a onmouseover="changeImages( /*CMP*/'store',/*URL*/'http://www.bulletproofmonkeys.co.uk/menubuttons/store1.gif');return true" onmouseout="changeImages( /*CMP*/'store',/*URL*/'http://www.bulletproofmonkeys.co.uk/menubuttons/store.gif');return true" href="#"><img src="http://www.bulletproofmonkeys.co.uk/menubuttons/store.gif" alt="" name="store" height="35" width="120" border="0"></a></div>
    <p></p>
    <div id="layer2">
    <a onmouseover="changeImages( /*CMP*/'contact',/*URL*/'http://www.bulletproofmonkeys.co.uk/menubuttons/contact1.gif');return true" onmouseout="changeImages( /*CMP*/'contact',/*URL*/'http://www.bulletproofmonkeys.co.uk/menubuttons/contact.gif');return true" href="contact.htm"><img src="http://www.bulletproofmonkeys.co.uk/menubuttons/contact.gif" alt="" name="contact" height="35" width="120" border="0"></a></div>
    <div id="layer5">
    <a onmouseover="changeImages( /*CMP*/'gallery',/*URL*/'http://www.bulletproofmonkeys.co.uk/menubuttons/gallery1.gif');return true" onmouseout="changeImages( /*CMP*/'gallery',/*URL*/'http://www.bulletproofmonkeys.co.uk/menubuttons/gallery.gif');return true" href="gallery.htm"><img src="http://www.bulletproofmonkeys.co.uk/menubuttons/gallery.gif" alt="" name="gallery" height="35" width="120" border="0"></a></div>
    <p></p>
    <p></p>
    <p></p>
    <div id="layer6">
    <a onmouseover="changeImages( /*CMP*/'b',/*URL*/'http://www.bulletproofmonkeys.co.uk/menubuttons/extras1.gif');return true" onmouseout="changeImages( /*CMP*/'b',/*URL*/'http://www.bulletproofmonkeys.co.uk/menubuttons/extras.gif');return true" href="#"><img name="b" src="http://www.bulletproofmonkeys.co.uk/menubuttons/extras.gif" width="120" height="35" alt="" border="0"></a></div>

    I hope someone can help! Thanks

  2.  

  3. #2
    Member Black Vivi's Avatar
    Join Date
    Apr 2003
    Location
    UK
    Posts
    75
    Member #
    1072
    u havent defined the function changeimages
    Download Firebird now!

  4. #3
    Member
    Join Date
    Sep 2003
    Posts
    84
    Member #
    2930
    And how do i do that??

  5. #4
    Member Black Vivi's Avatar
    Join Date
    Apr 2003
    Location
    UK
    Posts
    75
    Member #
    1072
    im not really that good with javascript, but this seems to be working...

    in main.html, add the following:
    Code:
    <script language="javascript">
    <!--
    function changeImages(imgname, imgsrc)
    {
        document.images[imgname].src = imgsrc;
    }
    //-->
    </script>
    under this:
    Code:
    --></style>
    Download Firebird now!

  6. #5
    Member
    Join Date
    Sep 2003
    Posts
    84
    Member #
    2930
    Cheers mate, ive edited the code like u said and uploaded it can you check to see if it works for me?? thanks

  7. #6
    Member Black Vivi's Avatar
    Join Date
    Apr 2003
    Location
    UK
    Posts
    75
    Member #
    1072
    yea, seems to be working fine
    Download Firebird now!

  8. #7
    Member
    Join Date
    Sep 2003
    Posts
    84
    Member #
    2930
    Thanks man!


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 06:12 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com