473,788 Members | 2,848 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

flaky rollover script

Hey folks,

Can someone take a look at this page and tell me what's up:

http://caraher.org/

You'll notice that the "links" button, which has a rollover script
attached, doesn't work. I've stared at it for far too long and can't
spot the problem. It's out-of-the-box Dreamweaver code, as I was not
getting paid enough to do any custom work here, but I've never had any
serious trouble with Dreamweaver's code before. In any case, the other
rollovers work. I can't figure out what is different about this one.

Thanks ahead...

stedae
Jul 20 '05 #1
9 1497
Steven Daedelus <sd*******@ira. gov> wrote in news:sdaedelus-
66************* ******@netnews. comcast.net:
http://caraher.org/


in Mozilla JavaScript Console, I get "Error: preLoadImages is not defined"
Jul 20 '05 #2
In article <Xn************ *************** @203.26.24.228> ,
John <jo**@mshome.ne t> wrote:
Steven Daedelus <sd*******@ira. gov> wrote in news:sdaedelus-
66************* ******@netnews. comcast.net:
http://caraher.org/


in Mozilla JavaScript Console, I get "Error: preLoadImages is not defined"


Yeah, I noticed that too. That shouldn't make any difference to the
rollovers, though, especially since only one of them doesn't work
properly.

stedae
Jul 20 '05 #3
In article <sd************ *************** **@netnews.comc ast.net>,
Steven Daedelus <sd*******@ira. gov> wrote:
In article <Xn************ *************** @203.26.24.228> ,
John <jo**@mshome.ne t> wrote:
Steven Daedelus <sd*******@ira. gov> wrote in news:sdaedelus-
66************* ******@netnews. comcast.net:
http://caraher.org/


in Mozilla JavaScript Console, I get "Error: preLoadImages is not defined"


Yeah, I noticed that too. That shouldn't make any difference to the
rollovers, though, especially since only one of them doesn't work
properly.

stedae


Well, if the function isn't defined the onload instance stops and your
rollovers don't get loaded. I don't know why one works.

The home page has:
onload="preload Images();MM_pre loadImages ...

but a lower page such as http://caraher.org/links.html has:

onload="MM_prel oadImages ...

Try deleting preloadImages() ;

I haven't tried this.

Robert
Jul 20 '05 #4
In article <rc************ *************** **@news1.west.e arthlink.net>,
Robert <rc*******@my-deja.com> wrote:
In article <sd************ *************** **@netnews.comc ast.net>,
Steven Daedelus <sd*******@ira. gov> wrote:
In article <Xn************ *************** @203.26.24.228> ,
John <jo**@mshome.ne t> wrote:
Steven Daedelus <sd*******@ira. gov> wrote in news:sdaedelus-
66************* ******@netnews. comcast.net:

> http://caraher.org/

in Mozilla JavaScript Console, I get "Error: preLoadImages is not defined"


Yeah, I noticed that too. That shouldn't make any difference to the
rollovers, though, especially since only one of them doesn't work
properly.

stedae


Well, if the function isn't defined the onload instance stops and your
rollovers don't get loaded. I don't know why one works.

The home page has:
onload="preload Images();MM_pre loadImages ...

but a lower page such as http://caraher.org/links.html has:

onload="MM_prel oadImages ...

Try deleting preloadImages() ;

I haven't tried this.

Robert


But my point is that failure to preload the images doesn't make any
difference to the rollover script. The preload script simply causes the
images to be cached. If it fails, the rollover still works, but the
images have to be loaded when the rollover is called.

In any case, I fixed this and it didn't make a difference.
Jul 20 '05 #5
Steven Daedelus <sd*******@ira. gov> wrote in
news:sd******** *************** ******@netnews. comcast.net:
In article <Xn************ *************** @203.26.24.228> ,
John <jo**@mshome.ne t> wrote:
Steven Daedelus <sd*******@ira. gov> wrote in news:sdaedelus-
66************* ******@netnews. comcast.net:
> http://caraher.org/


in Mozilla JavaScript Console, I get "Error: preLoadImages is not
defined"


Yeah, I noticed that too. That shouldn't make any difference to the
rollovers, though, especially since only one of them doesn't work
properly.

stedae


I'm pretty sure the rest of the onLoad won't run, therefore the preloads
won't occur. Don't know how that would effect the rollover code, haven't
really looked at the code in detail ... would removing the
"preLoadImages( )" call in the body onload be too difficult?
Jul 20 '05 #6
Steven Daedelus <sd*******@ira. gov> wrote in
news:sd******** *************** ******@netnews. comcast.net:
In article <rc************ *************** **@news1.west.e arthlink.net>,
Robert <rc*******@my-deja.com> wrote:
In article <sd************ *************** **@netnews.comc ast.net>,
Steven Daedelus <sd*******@ira. gov> wrote:
> In article <Xn************ *************** @203.26.24.228> ,
> John <jo**@mshome.ne t> wrote:
>
> > Steven Daedelus <sd*******@ira. gov> wrote in news:sdaedelus-
> > 66************* ******@netnews. comcast.net:
> >
> > > http://caraher.org/
> >
> > in Mozilla JavaScript Console, I get "Error: preLoadImages is not
> > defined"
>
> Yeah, I noticed that too. That shouldn't make any difference to the
> rollovers, though, especially since only one of them doesn't work
> properly.
>
> stedae


Well, if the function isn't defined the onload instance stops and
your rollovers don't get loaded. I don't know why one works.

The home page has:
onload="preload Images();MM_pre loadImages ...

but a lower page such as http://caraher.org/links.html has:

onload="MM_prel oadImages ...

Try deleting preloadImages() ;

I haven't tried this.

Robert


But my point is that failure to preload the images doesn't make any
difference to the rollover script. The preload script simply causes
the images to be cached. If it fails, the rollover still works, but
the images have to be loaded when the rollover is called.

In any case, I fixed this and it didn't make a difference.


Sorry, I didn't read your reply properly ;-)
Jul 20 '05 #7
On Wed, 03 Mar 2004 01:13:49 GMT, Steven Daedelus <sd*******@ira. gov>
wrote:

[snip]
You'll notice that the "links" button, which has a rollover script
attached, doesn't work. I've stared at it for far too long and can't
spot the problem. It's out-of-the-box Dreamweaver code, as I was not
getting paid enough to do any custom work here, but I've never had any
serious trouble with Dreamweaver's code before. In any case, the other
rollovers work. I can't figure out what is different about this one.


The only problem I have is with the call to the non-existant
preloadImages() function onload. All six rollovers work fine.

Opera 7.23/Win

Mike

--
Michael Winter
M.******@blueyo nder.co.invalid (replace ".invalid" with ".uk" to reply)
Jul 20 '05 #8
In article <op************ **@news-text.blueyonder .co.uk>,
Michael Winter <M.******@bluey onder.co.invali d> wrote:
On Wed, 03 Mar 2004 01:13:49 GMT, Steven Daedelus <sd*******@ira. gov>
wrote:

[snip]
You'll notice that the "links" button, which has a rollover script
attached, doesn't work. I've stared at it for far too long and can't
spot the problem. It's out-of-the-box Dreamweaver code, as I was not
getting paid enough to do any custom work here, but I've never had any
serious trouble with Dreamweaver's code before. In any case, the other
rollovers work. I can't figure out what is different about this one.


The only problem I have is with the call to the non-existant
preloadImages() function onload. All six rollovers work fine.

Opera 7.23/Win

Mike


Really? That's odd. I've tried it on three machines and half a dozen
browsers and it's still messed up. How weird is that?
Jul 20 '05 #9
In article <Xn************ *************** @203.26.24.228> ,
John <jo**@mshome.ne t> wrote:
Steven Daedelus <sd*******@ira. gov> wrote in
news:sd******** *************** ******@netnews. comcast.net:
In article <rc************ *************** **@news1.west.e arthlink.net>,
Robert <rc*******@my-deja.com> wrote:
In article <sd************ *************** **@netnews.comc ast.net>,
Steven Daedelus <sd*******@ira. gov> wrote:

> In article <Xn************ *************** @203.26.24.228> ,
> John <jo**@mshome.ne t> wrote:
>
> > Steven Daedelus <sd*******@ira. gov> wrote in news:sdaedelus-
> > 66************* ******@netnews. comcast.net:
> >
> > > http://caraher.org/
> >
> > in Mozilla JavaScript Console, I get "Error: preLoadImages is not
> > defined"
>
> Yeah, I noticed that too. That shouldn't make any difference to the
> rollovers, though, especially since only one of them doesn't work
> properly.
>
> stedae

Well, if the function isn't defined the onload instance stops and
your rollovers don't get loaded. I don't know why one works.

The home page has:
onload="preload Images();MM_pre loadImages ...

but a lower page such as http://caraher.org/links.html has:

onload="MM_prel oadImages ...

Try deleting preloadImages() ;

I haven't tried this.

Robert


But my point is that failure to preload the images doesn't make any
difference to the rollover script. The preload script simply causes
the images to be cached. If it fails, the rollover still works, but
the images have to be loaded when the rollover is called.

In any case, I fixed this and it didn't make a difference.


Sorry, I didn't read your reply properly ;-)


Quite alright. I probably should have removed the red herrings before I
posted the original question ;)

stedae
Jul 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
2049
by: Karl Burrows | last post by:
I am working on a Website for a non-profit group and for some reason I have one link that doesn't want to cooperate. All the image links work fine with the onmouseover and onmouseout script except one. Maybe I am just getting blurry-eyed, but can someone help me figure out what I have done wrong? Thanks!!!! <td width="190" height="57"><a href="Trends.htm" onmouseover="chgImg('Trends','InteriorTrendsBold')"...
1
2235
by: Oxnard | last post by:
Here's the script section: function change(color){ var el=event.srcElement if (el.tagName=="INPUT"&&el.type=="button") event.srcElement.style.backgroundColor=color } function jumpto2(url){ window.location=url }
4
1957
by: Leythos | last post by:
I've got several sites that I used DreamWeaver MX to add RollOver buttons to the pages, it also adds some javascript that pre-loads the images and does the mouse_over and such. In FireFox 1.0.1 when I load the page and it pre-loads the images the status bar shows DONE. When I mouse over any item, it changes the image properly, but the status (lower left of browser) shows "Read www.somesite.com", it may also show "Waiting for...
4
1606
by: Matt | last post by:
i know more-or-less zero about javascript, but my client wants a rollover and he created this code, which doesn't work. All comments are appreciated. 1. the tag: <td align="center" width="66" nowrap="nowrap" background="/work/phc1.10/images/layout/main_nav_bg.gif"> <a href="http://localhost/work/phc1.10/index.php?page=homecare" onmouseover="imgSwap('','gnav_hc_on','gnav_hc_on')" onmouseout="imgSwap('','gnav_hc_off','gnav_hc_off')">
5
5181
by: jedbob | last post by:
I used Adobe Imageready to build a simple rollover navigation bar, where the text will change color on a mouse over. The working example can be found at: http://www.akujunkan.com/test/NavBar.html However, when I try to incorporate the javascript and code into another table, the rollover stops working: http://www.akujunkan.com/test/index.html
2
2935
by: mix2plix | last post by:
ok.. been bangin by brains the past few days with this one and decided to seek you'z help. so here ya go. based on the code below and this concept.. how should i proceed? I have a table of 4 equal squares in which i've placed 4 equal sized pictures. now i'd like to create a link on the 4 pictures and have them change pictures when the mouse is over them. (rollover) <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">...
0
4476
daJunkCollector
by: daJunkCollector | last post by:
I wrote the following script. I have a movieclip named countyA_mc. I want the user to mouse over this movie clip, and result in the sending of a variable to the middle tier. I can establish communication when I use a .click event listener on a button component, but when I attempt to convert the script (in the following logical way) I do not establish communication with the aspx page: var hoverColor:Number = 0x9A9A9A; var...
4
5419
by: somnamblst | last post by:
I am asking this in javascript and not actionscript because I think the js portion more crucial. I have a viewable area in a SWFcalled box_mc on frame1 that is 300x100 until a rollOver event when it appears to become 300x274 because it has advanced to frame2 I want my actionscript to instruct a div that is 300x100pixels with overflow hidden to expand to a div that is 300x274 in response to the rollOver event. On rollOut I want my div to snap...
0
9656
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10364
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10172
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10110
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7517
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5398
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4069
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3670
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.