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

Thread: Rollover error

  1. #1
    Member
    Join Date
    Mar 2004
    Posts
    53
    Member #
    5175
    Greetings,
    At:http://www.equipmentpolice.com/index_scroll.htm
    Can someone tell me why the rollovers are not working.
    Also why there is an error sign on the bottom status bar where the scrolling message is?

    Thanks,
    Jack

  2.  

  3. #2
    Senior Member Trico's Avatar
    Join Date
    Feb 2004
    Location
    Nottingham, UK
    Posts
    894
    Member #
    5081
    I can't help you with the rollovers; I'm only really posting to point out you're commiting web design suicide. Get rid of all those cheap JavaScript scrolling news tickers, they are extremely amateur looking not to mention distracting from anything important that may be on the site.

  4. #3
    Senior Member Eddy Bones's Avatar
    Join Date
    Jan 2004
    Location
    Washington, USA
    Posts
    1,054
    Member #
    4651
    We'll take this link randomly:

    Code:
     <A HREF="http://www.equipmentpolice.com/fryer.html" onMouseOver="imgOn('img5')" onMouseOut="imgOff('img5')">
      <IMG SRC="fryers.jpg" border=0 HEIGHT=75 WIDTH=175  Alt="DEEP FRYERS"></A>
    First of all, you need to instert the image name in each image tag. So in that one above, you would need to put in NAME="img5"

    Second, the source should not be the name of the image itself, but the name of the javascript object. So in this case you want to change the SCR="fryers.jpg" to SRC="img5off".

    Use that basic idea for the rest of the links too.

  5. #4
    Member
    Join Date
    Mar 2004
    Posts
    53
    Member #
    5175
    Thanks Eddy!!!
    I'm changing it right now to see but I copied the code from one of my opther opages>>> www.equipmentpolice.com/ranges.html
    Can you see the difference as that one works fine.

    Regards,
    Jack

  6. #5
    Senior Member Eddy Bones's Avatar
    Join Date
    Jan 2004
    Location
    Washington, USA
    Posts
    1,054
    Member #
    4651
    The difference is only in that one you put the name attribute in each of the image tags. The javascript won't know what to interact with if you omit that.
    So perhaps it would still work if you kept the original image sources how you had them, but still added the image name within each image tag.

  7. #6
    Member
    Join Date
    Mar 2004
    Posts
    53
    Member #
    5175
    Eddy,
    The code is identical except for the additional 5 images and the names.
    How will they work if there is no description of the image for the script to identify?

    Thanks,
    Jack

  8. #7
    Senior Member Eddy Bones's Avatar
    Join Date
    Jan 2004
    Location
    Washington, USA
    Posts
    1,054
    Member #
    4651
    I don't know what exactly you mean by "description of the image," but if you mean what would happen if you omit the name attribute, well, they would probably work as plain image links but the rollovers just wouldn't work.

    Actually, the code between the two is not identical. In the first one the images used as links still lack names (<img src="img1off" name="img1"> for example). So the rollovers will not work, but the links still should.


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 12:13 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com