iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-11-2004, 01:25 PM
WebProWorld Pro
 
Join Date: Jan 2004
Location: Empangeni, South Africa
Posts: 123
justinw RepRank 0
Default Mouse over image help needed!!!

I was given a mouseover code, which displays correctly while I am offline, but when I upload everything it does not display correctly.

If you go to my site (www.empangenispca.co.za) you will see the lost image holder at the top left
------------------------------------------------

Here is the code:

<script language="JavaScript" type="text/javascript">
img0_on = new Image(61,61);
img0_on.src="images/logoover.jpg";
img0_off = new Image(61,61);
img0_off.src="images/logo.jpg";
function over_image(parm_name)
{
document[parm_name].src = eval(parm_name + "_on.src");
}
function off_image(parm_name)
{
document[parm_name].src = eval(parm_name + "_off.src");
}
</script>


<a href="home.html" target="right"
onmouseover="over_image('img0');"
onmouseout="off_image('img0')">
[img]images/logo.jpg[/img]</a>

Please help!

PS: I got this code off from Bravenet's Tips and Tricks area. View it correctly here:
http://www.bravenet.com/resources/ti...ip.php?view=13
__________________
Website designs in Empangeni, South Africa: www.jwdesigns.co.za
Reply With Quote
  #2 (permalink)  
Old 02-11-2004, 01:38 PM
WebProWorld Pro
 
Join Date: Jan 2004
Location: Empangeni, South Africa
Posts: 123
justinw RepRank 0
Default Mouse over image help needed!!!

I was given a mouseover code, which displays correctly while I am offline, but when I upload everything it does not display correctly.

If you go to my site -www.empangenispca.co.za- you will see the lost image holder at the top left
------------------------------------------------

Here is the code:

<script language="JavaScript" type="text/javascript">
img0_on = new Image(61,61);
img0_on.src="images/logoover.jpg";
img0_off = new Image(61,61);
img0_off.src="images/logo.jpg";
function over_image(parm_name)
{
document[parm_name].src = eval(parm_name + "_on.src");
}
function off_image(parm_name)
{
document[parm_name].src = eval(parm_name + "_off.src");
}
</script>


<a href="home.html" target="right"
onmouseover="over_image('img0');"
onmouseout="off_image('img0')">
[img]images/logo.jpg[/img]</a>

Please help!

PS: I got this code off from Bravenet's Tips and Tricks area. View it correctly here:
http://www.bravenet.com/resources/ti...ip.php?view=13
__________________
Website designs in Empangeni, South Africa: www.jwdesigns.co.za
Reply With Quote
  #3 (permalink)  
Old 02-11-2004, 02:50 PM
paulhiles's Avatar
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: UK
Posts: 2,089
paulhiles RepRank 0
Default

Hi Justin,

Are you sure you've uploaded the rollover images to the correct directory?
When I entered the full path to the image, there is a "file not found" error.
If the image is there.. it should display below:

http://www.empangenispca.co.za/images/logoover.jpg


Paul
Reply With Quote
  #4 (permalink)  
Old 02-11-2004, 03:06 PM
WebProWorld 1,000+ Club
 
Join Date: Aug 2003
Location: Edmonton, AB, Canada
Posts: 1,527
mikmik RepRank 2mikmik RepRank 2
Default

Make sure that you uploaded your images. When I tried 'images/logo.jpg' it came back as not found.

The folder of images should stay exactly the same in relation to your index page. Don't move it into another directory (folder) and make sure the logo images are in a folder named "images".
Reply With Quote
  #5 (permalink)  
Old 02-11-2004, 09:16 PM
paulhiles's Avatar
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: UK
Posts: 2,089
paulhiles RepRank 0
Default

Hi Justin,

I've merged the two postings of your original question to Web programming and Site Design. Please try to avoid "cross-posting". I know you might feel as though you're doubling the chances of a response, but more often than not.. it merely dilutes the effort that members can give to answering specific problems.
In this particular instance, it looks as though mikmik and myself have arrived at the same conclusion (albeit in separate forums). Have a look at your site folders and get back to us! :o)

Paul
Reply With Quote
  #6 (permalink)  
Old 02-12-2004, 01:49 PM
WebProWorld Pro
 
Join Date: Jan 2004
Location: Empangeni, South Africa
Posts: 123
justinw RepRank 0
Default

Thanks all for your help.

My folders were correctly arranged but there was a second images folder within the original folder. I have reset everything, taken off and uploaded everything again.

Do you know if the files are case sensitive? My logo files are ending with .JPG and not .jpg. If you try the logo link with the .JPG ending with capitals then only does it show up. Confusing, eh!?



@paulhiles: Fine by me (",)

I'll keep at the problem. Thanks.[img][/img][img][/img]
__________________
Website designs in Empangeni, South Africa: www.jwdesigns.co.za
Reply With Quote
  #7 (permalink)  
Old 02-12-2004, 02:07 PM
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: Western Australia
Posts: 1,336
matauri RepRank 0
Default

Quote:
Originally Posted by empangenispca
Do you know if the files are case sensitive?
Yes they are case sensitive, so sometimes you have to check that programs that create them are then converted to lower case. I say to convert to lower case rather than just put the .JPG , because, with reforms to standards, uppercase is on the way out.


Cindy
__________________
Web Development Community ::: Forum ::: Library

It' time for Progressive Web & IT Development!
Reply With Quote
  #8 (permalink)  
Old 02-12-2004, 02:11 PM
WebProWorld Pro
 
Join Date: Jan 2004
Location: Empangeni, South Africa
Posts: 123
justinw RepRank 0
Default

OK thanks. I will convert them in the future. If you look at my previous posting you can see the mouse over second logo with the .JPG.

So uppercase is going out? Why is that, please?
__________________
Website designs in Empangeni, South Africa: www.jwdesigns.co.za
Reply With Quote
  #9 (permalink)  
Old 02-12-2004, 02:18 PM
WebProWorld Pro
 
Join Date: Jan 2004
Location: Empangeni, South Africa
Posts: 123
justinw RepRank 0
Default

Another thing:
With the mouseover image, I have placed a script for the mouseover image to be preloaded. I have used this script and it is a script include:

var myimages=new Array()
function preloadimages(){
for (i=0;i<preloadimages.arguments.length;i++){
myimages[i]=new Image()
myimages[i].src=preloadimages.arguments[i]
}
}
preloadimages("images/logoover.JPG")
---------------------------------------------------
Where I have the image effect I have this along with a status bar effect:

<a href="home.html" target="right"
onmouseover="over_image('img0'),onMouseOver=window .status='Empangeni SPCA -Home'; return true"
onmouseout="off_image('img0')">
[img]images/logo.JPG[/img]</a>


Is that all correct because when I go over the image it takes a few seconds to respond sometimes.
__________________
Website designs in Empangeni, South Africa: www.jwdesigns.co.za
Reply With Quote
  #10 (permalink)  
Old 02-12-2004, 02:22 PM
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: Western Australia
Posts: 1,336
matauri RepRank 0
Default

Have a read of this link , it might help for future coding practices.


Cindy
__________________
Web Development Community ::: Forum ::: Library

It' time for Progressive Web & IT Development!
Reply With Quote
  #11 (permalink)  
Old 02-12-2004, 02:45 PM
WebProWorld Pro
 
Join Date: Jan 2004
Location: Empangeni, South Africa
Posts: 123
justinw RepRank 0
Default

Thanks for the link... I read it.
I am surprised at what they had to say about the horizontal lines and breaks requiring the slash within the tags.

But if it makes things better I will definately do it. :)
__________________
Website designs in Empangeni, South Africa: www.jwdesigns.co.za
Reply With Quote
  #12 (permalink)  
Old 02-12-2004, 06:15 PM
WebProWorld 1,000+ Club
 
Join Date: Aug 2003
Location: Edmonton, AB, Canada
Posts: 1,527
mikmik RepRank 2mikmik RepRank 2
Default

Matauri wrote
Quote:
Have a read of this link , it might help for future coding practices.
Good link, I must say :o)

Thanks Mat, I am going try the CDATA 'wrap' for style and script tags, I have just been making them all external if they didn't validate (javascript!)

Also, it can be confusing because some servers are not case sensitive when it comes to file extentions, but my main bug is when software uses uppercase to name my files that I produce - always set the options properly when setting up your apps :o(

LOL
Reply With Quote
  #13 (permalink)  
Old 02-12-2004, 08:54 PM
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: Western Australia
Posts: 1,336
matauri RepRank 0
Default

You mean I had a link you didnt have Mik??? I'm dumbfounded! ;-)

I thought between you & Paul you had every link covered! :-)



Cindy
__________________
Web Development Community ::: Forum ::: Library

It' time for Progressive Web & IT Development!
Reply With Quote
  #14 (permalink)  
Old 02-13-2004, 05:42 PM
paulhiles's Avatar
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: UK
Posts: 2,089
paulhiles RepRank 0
Default

Quote:
Originally Posted by Matauri
You mean I had a link you didnt have Mik??? I'm dumbfounded! ;-)

I thought between you & Paul you had every link covered! :-)
Mik definitely has the lead on me there... he's been gobbling up choice CSS links left right and centre! Doug suggests we look into Bookmark Management Systems! hmmm... he may well have a point! :o)

Paul
Reply With Quote
  #15 (permalink)  
Old 02-13-2004, 07:01 PM
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: Western Australia
Posts: 1,336
matauri RepRank 0
Default

I was reading that...LOL...Maybe you & Mik are on to something! ;-)


Cindy
__________________
Web Development Community ::: Forum ::: Library

It' time for Progressive Web & IT Development!
Reply With Quote
  #16 (permalink)  
Old 02-15-2004, 10:49 AM
WebProWorld Pro
 
Join Date: Jan 2004
Location: Empangeni, South Africa
Posts: 123
justinw RepRank 0
Default

Thanks to paulhiles, mikmik and Mautari for your help! I have changed all my file names to lower case and my mouse over image works (",)

PS: Could you just please check if the mouse over works for you? Thanks.
__________________
Website designs in Empangeni, South Africa: www.jwdesigns.co.za
Reply With Quote
  #17 (permalink)  
Old 02-15-2004, 10:58 AM
paulhiles's Avatar
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: UK
Posts: 2,089
paulhiles RepRank 0
Default

Hi Justin,

Rollover in top left works fine... tested in Mozilla Firebird and IE (action was a bit slow in IE). Your home.html page wasn't displaying any images though.. are you in the process of updating that page? I think it's still referencing two images with the uppercase suffix (valentine.JPG, zulucom.GIF) both of which should be in your images folder.

Hope that helps,

Paul
Reply With Quote
  #18 (permalink)  
Old 02-15-2004, 11:02 AM
WebProWorld Pro
 
Join Date: Jan 2004
Location: Empangeni, South Africa
Posts: 123
justinw RepRank 0
Default

I also noticed that the action was slow in IE... I don't know why. I have uploaded my homepage with the changes; the images should show correctly now.

I will change the home page soon to look better.
__________________
Website designs in Empangeni, South Africa: www.jwdesigns.co.za
Reply With Quote
  #19 (permalink)  
Old 02-15-2004, 11:18 AM
WebProWorld Pro
 
Join Date: Jan 2004
Location: Empangeni, South Africa
Posts: 123
justinw RepRank 0
Default

Another thing about the mouse over being slow:

Coudl it be that I have two scripts in the menu? I have the mouse over script and a preloaded image script. Could those two be conflicting and making it slow?
__________________
Website designs in Empangeni, South Africa: www.jwdesigns.co.za
Reply With Quote
  #20 (permalink)  
Old 02-15-2004, 11:19 AM
paulhiles's Avatar
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: UK
Posts: 2,089
paulhiles RepRank 0
Default Preload logo image needs to be added

Try modifying the following line in your preload script:

preloadimages("images/logo.jpg, images/logoover.jpg")

At the moment, you're only calling the logoover.jpg.
you also need to add the logo.jpg image, try this and you may find the action improves!
I just tried locally here and it seemed to work.

Paul
Reply With Quote
  #21 (permalink)  
Old 02-15-2004, 11:23 AM
WebProWorld Pro
 
Join Date: Jan 2004
Location: Empangeni, South Africa
Posts: 123
justinw RepRank 0
Default

OK, I added that. It still seems to pause before.
__________________
Website designs in Empangeni, South Africa: www.jwdesigns.co.za
Reply With Quote
  #22 (permalink)  
Old 02-15-2004, 11:44 AM
paulhiles's Avatar
WebProWorld 1,000+ Club
 
Join Date: Jul 2003
Location: UK
Posts: 2,089
paulhiles RepRank 0
Default

Quote:
Originally Posted by empangenispca
OK, I added that. It still seems to pause before.
Try clearing the cache on your browser.. it certainly appears to be quicker from here.. but it's a bit difficult to be truly objective, because I'm on a fast connection anyway.
I was getting an hourglass flash momentarily before.. but now the action seems pretty immediate. Try asking other members/ friends to check it out too! :o)

Paul
Reply With Quote
  #23 (permalink)  
Old 02-15-2004, 11:48 AM
WebProWorld Pro
 
Join Date: Jan 2004
Location: Empangeni, South Africa
Posts: 123
justinw RepRank 0
Default

Thanks then. Hopefully other members can comment as well.
__________________
Website designs in Empangeni, South Africa: www.jwdesigns.co.za
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 12:29 PM.



Search Engine Optimization by vBSEO 3.3.0