View Full Version : JavaScript Problem
Looking for help with a javascript that I'm playing around with.
The web page is: http://thefurys.tripod.com/main.html
When this page is viewed using Netscape 4.5 and higher the second image properly shows itself with the onMouseOver function, however, when the mouse is moved off the image with the onMouseOut function it stays with the "second image".
With IE5.0 the only problem I'm seeing is there seems to be a border around the image during the onMouseOut function, yet the border is set to 0.
By the way, during the onMouseOver function there is an image in the center that is supposed to appear, then again "blank out" when the onMouseOut function is executed.
Looking for help here of any kind...the code doesn't appear to have any seen errors however, I'm getting frustrated due to it not working properly.
Thanks in advance
Nette
~severely frustrated with javascript~
I took a quick glance at yer site and the mouse over worked, i use IE5.
Its not a perfect mouse over cos when the image has to change back to image1, it takes a second or two.
I checked out the scripting and there doesnt seem to be any preload scripting, thuis preloads the images before the entire page is loaded, so when a mouse over is done the image change will happen instantly as the pics are already in memory.
I aint got much time now, but if you dont know what i'm chattin about then i'll post the lines you need to type for preloads.
Hope that helps :)
I believe I know what you're talking about Ali.G as far as the preload of the images. However, would you mind posting lines just so I have a full understanding of the concept you're speaking of.
Also, you say it works fine with IE5.0, as that is what you use, do you have any idea of what could be causing me to see a border of such with an small picture of an "x" at the top of each the images. Like I said, it's almost like each of the images has a "border" around it. Yet, you say you don't see that, could this also be due to needing to add the "preload" part of the script?
Thank you soooo much for the reply, this coding can be a real pain at times! ;)
I look forward to hearing from you again!
Hi Ali.G got my problem fixed as far as the image changing from image1 to image2...it happened to be due to not being able to locate a "blank.gif" issue.
I will still be looking around for a preload script to load the images ahead of time.
Thank you for all your help!
Nette
btw your link to Furyness, the url has a ";" after it which is causing it not to work.
Thanks Qui, but actually, if you go back out to the page, you'll notice that none of the links are up yet. My main concern, which is now solved (WOOHOO!) was the javascript not changing images...when I would run the mouse over the image(1) would change into image(2), but when you would move the mouse out, it wouldn't change back to image(1) again. I found out thru this message board and thru the javascript newsgroup that it was basically due to my upload not being able to find a "blank.gif" which is in my source code. Anyway, the problem is now fixed and I'm going to be working on finishing the page within the next few weeks.
Thanks again for letting me know. I really appreciate it! <grin>
Nette
By the way, while I'm out here, I created an index file of a javascript slideshow at:
http://thefurys.tripod.com
I'm wanting to put sound in the background, and I know within Netscape it's usually a <EMBED> tag and in IE it's a <BGSND> tag however, when I tried that, it didn't work...Any ideas on how I could incorporate sound within the slideshow????
Thanks again Ali.G and Qui!!!!!! :)
<bgsound src=audio.mid loop=infinite>
or
<embed src=missy.wav hidden=true autostart=true loop=true>
Hi Qui - I tried that in both the <head></head> and the <body></body> of the code. However, it doesn't want to work, I have a feeling it's because the source for the slideshow that I have sets itself into a frame after the inital code. Would I just put the background sound within the frame or create a new frame?
Thanks again, I really appreciate your help! :)
Nette
if its hidden and autostarts it shouldnt matter where you put it
<html>
<head>
<title>Music Test</title>
</head>
<body>
<embed src="missy.wav" hidden="true" autostart="true" loop="true">
This should play some music :D
</body>
</html>
this definitely works in Ie 4 and Netscape 4.6, any more problems contact me on icq: 39523115, and we can go through the code line by line :)
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.