Preserved Topic: Comment on Doc's JS rollover. |
|
---|---|
Author | Thread |
Bipolar (III) Mad Scientist From: Camillus, NY, USA |
posted 09-26-2000 21:35
I was looking at it and I realized I don't like his method at all...it seems a bit complicated and if you have a large site with many rollovers it can get pretty big. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 09-26-2000 22:12
The one problem with your method is that you don't pre-load the images. It will work fine if you have a cable modem or DSL, but otherwise there will be a delay and most people will have their mouses off the button before the image appears. |
Obsessive-Compulsive (I) Inmate From: Peoria, AZ USA |
posted 09-26-2000 23:55
Despite that Doc's code may get 'bulky' when more images have to be added to it for large sites, it does preload the images, which is useful for visitors who are still on modems. That was what I was looking for, as while I am on a cable modem at home (& a T1 at work), most of the visitors to the sites I am working on will typically be modem surfers, and I'd rather the pages they will be viewing load quickly for them so they actually stay a while. <img border=0 align=absmiddle src="http://www.ozones.com/forum/smile.gif"> |
Bipolar (III) Mad Scientist From: Camillus, NY, USA |
posted 09-27-2000 00:36
That's why I have another function that I use to preload the needed images. |
Obsessive-Compulsive (I) Inmate From: |
posted 09-27-2000 00:46
what planet are you from Sloloem? doh! |
Nervous Wreck (II) Inmate From: germany |
posted 09-27-2000 08:51
sloloem_what is it you use to preload? please post the code as i use a function for my rollovers that is similar to yours. |
Maniac (V) Mad Scientist From: TipToToe |
posted 09-27-2000 17:26
Yah, what planet are you from Slo ? Doh. |
Bipolar (III) Mad Scientist From: Camillus, NY, USA |
posted 09-27-2000 20:53
Mario: |
Bipolar (III) Inmate From: Wales, UK |
posted 09-28-2000 09:04
Sorry guys, but I have to agree with Sloloem. His method is a lot simpler, particularly for new Scripters who are coding for the first time! (Have you noticed how many posts there are on this forum just asking for clarification of the Doc's code? I've given up answering them now!) |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 09-28-2000 22:31
Honestly I don't see that big of a difference between the two different scripts. The actual rollover code is virtually Identical. |
Bipolar (III) Mad Scientist From: Camillus, NY, USA |
posted 09-29-2000 00:14
A good idea would be to use onload in body to trigger the preload. |
Maniac (V) Mad Scientist From: TipToToe |
posted 09-30-2000 03:37
Yah, sorta, Slo. |
Maniac (V) Inmate From: Den Haag: The Royal Residence |
posted 10-02-2000 01:15
Curse the cable guys...they did not put the wire in the ground at my village yet. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 10-02-2000 20:05
I kinda have my own rollover script using bits of many others but to solve the rollover issue when the page is not yet loaded I do this. |