Want to thank and support me for my work?
Buy my iWebFAQ.org E-Book (15$) (reviews) (sample) or...
iWebFAQ.org is presented by Cédric and hosted by HostExcellence
It is currently Wed May 22, 2013 7:07 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Roll-Over Tutorial (cannot make it work!!! :( )
Author Message
 Post subject: Roll-Over Tutorial (cannot make it work!!! :( )
PostPosted: Fri May 15, 2009 2:50 pm 
Offline

Joined: Fri May 15, 2009 2:38 pm
Posts: 3
For some reason I cannot make it work with the roll over image tutorial seen here:

http://iwebfaq.org/site/iWeb_Rollover_images.html

Situation: Using iWeb 09, publishing to a me.com account, checking the published website on both a PC and a MAC. NOT a html expert... at all!

Problems:
1. It WILL not show my original image, the one in the code after: <IMG SRC=, the one that should be showing, when the page is loaded and I have done nothing with the cursor. It only shows a questionmark after publishing. After I have rolled over the question mark the first time, it functions with NO problems! It shows both my normal.jpg and my rollover.jpg. Have been at this for hours now... (have even tried to erase the entire path to this image, after <IMG SRC=, and nothing happens, it just makes NO different!)
2. I cannot make it link to a page in my website!? I thought this would be straight forward, but I simply cannot make it work!

Lost for solution!! Hope anyone can help me!!


Top
 Profile Send private message  
 
Roll-Over Tutorial (cannot make it work!!! :( )
Author Message
 Post subject: Re: Roll-Over Tutorial (cannot make it work!!! :( )
PostPosted: Fri May 15, 2009 11:21 pm 
Offline
Site Admin

Joined: Tue Jun 10, 2008 1:14 am
Posts: 1840
Location: Basel, Switzerland
Please post your code and a link to the page. Otherwise I can't help you.

_________________
Thank you for visiting my websites:
http://iwebfaq.org - http://rapidweaverfaq.org - http://wpfaq.org - http://ebookstoretoday.com
All my websites are hosted by: HostGator


Top
 Profile Send private message  
 
Roll-Over Tutorial (cannot make it work!!! :( )
Author Message
 Post subject: Re: Roll-Over Tutorial (cannot make it work!!! :( )
PostPosted: Sat May 16, 2009 1:09 am 
Offline

Joined: Fri May 15, 2009 2:38 pm
Posts: 3
Link to the working page in question!:

http://web.me.com/lars.kohler/Skitse02/ ... fotos.html

The roll-over function is only assigned to the top left photo... well It kind of doesn't need explanation, since one is greeted by the questionmark in its place! This is the only thing I am working on here, before I progress with my site, so no other things are working!

Here's the code!:

<A HREF=’Destination URL’ target=”_top”
onmouseover="document.sub_but.src='http://web.me.com/lars.kohler/photoswebsite/thumbnails/guggenheimbasic.jpg'"
onmouseout="document.sub_but.src='http://web.me.com/lars.kohler/photoswebsite/thumbnails/guggenheimwhite.jpg'">
<IMG SRC=”http://web.me.com/lars.kohler/photoswebsite/thumbnails/guggenheimwhite.jpg” WIDTH="120" HEIGHT="120" BORDER="0" ALT="guggenheim" NAME="sub_but">
</A>


I will greatly appriciate your help!!!
:geek:


Top
 Profile Send private message  
 
Roll-Over Tutorial (cannot make it work!!! :( )
Author Message
 Post subject: Re: Roll-Over Tutorial (cannot make it work!!! :( )
PostPosted: Sat May 16, 2009 10:43 am 
Offline
Site Admin

Joined: Tue Jun 10, 2008 1:14 am
Posts: 1840
Location: Basel, Switzerland
Try this code here:

<a href='Destination URL' target="_top"
onmouseover="document.sub_but.src='http://web.me.com/lars.kohler/photoswebsite/thumbnails/guggenheimbasic.jpg'"
onmouseout="document.sub_but.src='http://web.me.com/lars.kohler/photoswebsite/thumbnails/guggenheimwhite.jpg'">
<IMG SRC= 'http://web.me.com/lars.kohler/photoswebsite/thumbnails/guggenheimwhite.jpg' WIDTH="120" HEIGHT="120" BORDER="0" ALT="guggenheim" NAME="sub_but">
</a>

To make a link write the URL instead of "Destination URL". Example:

<a href='http://www.guggenheim.org' target="_top"
onmouseover="document.sub_but.src='http://web.me.com/lars.kohler/photoswebsite/thumbnails/guggenheimbasic.jpg'"
onmouseout="document.sub_but.src='http://web.me.com/lars.kohler/photoswebsite/thumbnails/guggenheimwhite.jpg'">
<IMG SRC= 'http://web.me.com/lars.kohler/photoswebsite/thumbnails/guggenheimwhite.jpg' WIDTH="120" HEIGHT="120" BORDER="0" ALT="guggenheim" NAME="sub_but">
</a>

Regards,
Cédric

_________________
Thank you for visiting my websites:
http://iwebfaq.org - http://rapidweaverfaq.org - http://wpfaq.org - http://ebookstoretoday.com
All my websites are hosted by: HostGator


Top
 Profile Send private message  
 
Roll-Over Tutorial (cannot make it work!!! :( )
Author Message
 Post subject: Re: Roll-Over Tutorial (cannot make it work!!! :( )
PostPosted: Sat May 16, 2009 6:53 pm 
Offline

Joined: Fri May 15, 2009 2:38 pm
Posts: 3
Hey Cedric

Thanx alot! It all works now! But the code that is working here, isn't the code you posted in your tutorial!? Do you know what is the reason why the original isn't working for me!?

Got a couple of other questions! Hope you can help me here as well! :)

1. First of all... managed to solve it, so I could have more than one button at the time on the same page! But It looks like the browser only loads the roll-over buttons, when they are rolled-over the first time!? Is this correct? Would it be possible to preload them, so there wouldn't be this delay in the roll-over function on the buttons?

2. secondly... do you know whether iweb compresses and crops the images placed on the pages and masked when the page is published, so they are not loaded as the original file size, but loaded as an optimised version with only the visible pixels shown? Just wanna know, whether I should do the big job of cropping the orginal high res images to the pixelsize they are placed on the site, or I could do it the fast way, and just drag the high res images in from my iPhoto library and masking them? ;) Doing it the smart way... Cutting corners you know! ;)

Really appriciate your help man!!! :)


Top
 Profile Send private message  
 
Roll-Over Tutorial (cannot make it work!!! :( )
Author Message
 Post subject: Re: Roll-Over Tutorial (cannot make it work!!! :( )
PostPosted: Sat May 16, 2009 8:30 pm 
Offline
Site Admin

Joined: Tue Jun 10, 2008 1:14 am
Posts: 1840
Location: Basel, Switzerland
The reason why it wasn't working was that it used quotes instead of apostrophes. It used to work in iWeb '08 anyway but not in iWeb '09. I updated the code on the site.

1. I don't think there is a way to preload the on-roll picture.

2. iWeb resizes the images on its own when publishing. They are full resolution in iWeb to allow you to enlarge or restrict them without quality loss but on the published site they aren't full resolution.

Of course the rollover picture is another issue since you don't publish it through iWeb but you put it directly on the server/MobileMe hence it doesn't get "optimized" by iWeb.

Regards,
Cédric

_________________
Thank you for visiting my websites:
http://iwebfaq.org - http://rapidweaverfaq.org - http://wpfaq.org - http://ebookstoretoday.com
All my websites are hosted by: HostGator


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron






Want to support me for my work?

or buy my iWebFAQ.org E-Book (15$)

(reviews) (sample)

Thanks,
Cédric



 

This website is hosted by HostExcellence



© 2008, 2009 Powered by phpBB Group
Macinscott 3 style by Scott Stubblefield