Web Design and Development Forums

How To Create Rollovers in iWeb Easy!

This is a discussion on "How To Create Rollovers in iWeb Easy!" within the New to Web Design section. This forum, and the thread "How To Create Rollovers in iWeb Easy! are both part of the Beginners category.


Go Back   Webforumz.com > Beginners > New to Web Design

Welcome to Webforumz.com.
Register Now Register now!

Reply
 
LinkBack Thread Tools Rate Thread
Old Jan 20th, 2008, 05:15   #1 (permalink)
New Member
 
Join Date: Jan 2008
Location: la
Age: 16
Posts: 3
How To Create Rollovers in iWeb Easy!

While current versions of iWeb weren't designed with Rollover Images in mind, there is no reason why you can't write them yourself. Today I'm going to share with you what I've learned. In Five Steps we will locate and edit the source code for a functional Image Rollover or two...



1. Locate Picture:

If your familiar with iweb you may have noticed that when saving your work under the "Publish To Folder " option, iWeb creates a file called "Site". All Your html files and pictures are within this folder. Sometimes iWeb
changes picture names while saving, so it's important that you locate where within this file and what your "image" is titled. Write it down.




2. Locate Picture in source code
Now that you know the location and title of your picture, lets find it in the source code.

1. From the site folder open the .html page that will display the image rollover. Then select View + Page Source
(copy all the code into Text Edit, making sure Text Edit is set on plan text .)

Now you are ready to find your picture within this coding.

2. Use Edit+find and type the title of your picture. Mine is 50-3.jpg
Once found, the code surrounding your image will look like this:

<img src="Images/50-3.jpg" alt="" style="border: none; height: 461px; left: 237px; opacity: 1.00; position: absolute; top: 139px; width: 373px; z-index: 1; " />

( 50-3.jpg being your pictures title, notice that the coding starts with <img and ends with /> ) double space the surrounding area to eliminate confession, like i did in the photo:

http://i177.photobucket.com/albums/w...como/code1.jpg




3. Replace and edit lines

Follow each step carefully. Bolded characters refer to portions of the script above.

1. After the /> type </a>

2. Type name="rollover1" after the .jpg" extension of your picture's title. Use a space before and after.

3. Now paste the following code above and before the <img

<a href="URL"

onmouseover="rollover1.src='PATH TO ROLLOVER IMAGE';"
onmouseout="rollover1.src='PATH TO NORMAL IMAGE';">


4. Replace 'PATH TO NORMAL IMAGE' with "images/50-3.jpg"
(with quotations. My picture is 50-3.jpg so you would type yours there instead.)

5. Replace 'PATH TO ROLLOVER IMAGE' with the title of your second image. Don't forget to add the "Images/ " because this represents the Images folder.

Lastly URL is a link. Try replacing it with the title of another .html file or web address.


Save your document as the .html page were you copied the source code from. This means you will save-overwrite a .html file from the site folder.


http://i177.photobucket.com/albums/w...ycomo/pic2.jpg


4. Add second image and your finished

Drop your second rollover image into the same location where you located the first one. You can now successfully view a working rollover.





5. Multiple Rollovers
Adding Multiple rollovers is fairly easy. Remember step 2 you located your image from the source code and wrote name="rollover1" after the title, well instead of writing name="rollover1"for your next rollover you'll write
name="rollover2" and also change the
onmouseover="rollover1.src= and onmouseout="rollover1.src= to two's and so forth.

Basically your adjusting the number of the rollover code.





Warning:
Saving in iWeb erases code and any other pictures not seen from iWeb.

Also remember that if you've created a shortcut such as a cut and past template for coding, the pictures on iWeb can't be moved around without having too adjust the coordinations in your coding.




Fin........
There is much trial and error involved but my advice would be to code last.



Credit to Max Karreth
amsterdam55 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Feb 18th, 2008, 19:02   #2 (permalink)
New Member
 
Join Date: Feb 2008
Location: London
Age: 32
Posts: 3
Re: How To Create Rollovers in iWeb Easy!

Hi, thanks for the tutorial.

I have been wanting to get rollover menus into my new iWeb site...

http://www.gotgotneed.com

...so tried your technique, but am not having any luck. I have zero html experience, so your very informative explanation has pointed me in the right direction, although I am inevitably doing something wrong. I set up a test page, with one button from my site, and was looking to make the type turn from white to black when rolled over. However, nothing seems to be happening.

There are differences in your html example and mine, but I assume that's down to our differing website. My files were all created in iWeb and have been saved as .png as opposed to .jpg, but I wouldn't have thought that mattered.

I have attached two images, mirroring your images from your explanation. Plus the files I am using, "shapeimage_1.png" was the original, "shapeimage_1a.png" the rollover effect.

http://www.gotgotneed.com/gotgotneed_1.jpg

http://www.gotgotneed.com/gotgotneed_2.jpg

http://www.gotgotneed.com/files.jpg

Can you tell me what I'm doing wrong?

Thanks in advance for your help,

Adam.
gotgotneed is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Feb 19th, 2008, 02:02   #3 (permalink)
New Member
 
Join Date: Jan 2008
Location: la
Age: 16
Posts: 3
Re: How To Create Rollovers in iWeb Easy!

Here are some Ideas to try.

1. Make sure that after your .png or .jpg therea a identical ';"


2. All your rollovers and images are in a folder called images inside the site folder. Not the iweb _files folder.

3. After <img there should be the src=" line. You may want to remove the usemap=#map1" id=shapeimage_1" line.

4.have a look at my html work on site it was made with iweb.



5. Lastly i was only successful because i followed the video:

http://karreth.com/files/wordpress/v...s/rollover.mov

with the coinciding code:

<a href="URL"

onmouseover="rollover1.src='PATH TO ROLLOVER IMAGE';"
onmouseout="rollover1.src='PATH TO NORMAL IMAGE';">

<img src="PATH TO NORMAL IMAGE"
border="0" width="WIDTH IN PIXEL" height="HEIGHT IN PIXEL"
name="rollover1">

</a>





wish you luck.
amsterdam55 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Feb 20th, 2008, 14:10   #4 (permalink)
New Member
 
Join Date: Feb 2008
Location: London
Age: 32
Posts: 3
Re: How To Create Rollovers in iWeb Easy!

Thanks again for getting back to me.

I have done a test at work on iWeb06, with a dummy site (as opposed to my main site at home using iWeb08) and the rollover links work just fine. The main mistake I was making was following your tutorial to the letter, so I replaced...

4. Replace 'PATH TO NORMAL IMAGE' with "images/50-3.jpg" (with my equivalent file)

...exactly, i.e. using "images/50-3.jpg"as opposed to 'images/50-3.jpg'

Now just to work out how to implement this onto my main site. The main headache I can see is what you referred to at the end of your guide - that every time you publish a site from iWeb it replaces EVERYTHING in the iWeb folder, which then obliterates the amended HTML and added files (for rollovers). Have you got a good system for this?

Thanks.
gotgotneed is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Feb 20th, 2008, 15:19   #5 (permalink)
New Member
 
Join Date: Jan 2008
Location: la
Age: 16
Posts: 3
Re: How To Create Rollovers in iWeb Easy!

Yes, but it still requires me to cut and paste coding for the page i want to edit

When everything is finished i upload using Fetch. There my site can be untouched and wont be replaced when i save iWeb, since it's on a server. On the server you can add individual files without changing everything, like iWeb would.

It might seem crazy why i would use iWeb when i have GoLive and Dreamweaver.
amsterdam55 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Mar 7th, 2008, 13:57   #6 (permalink)
New Member
 
Join Date: Mar 2008
Location: dd
Age: 20
Posts: 2
Re: How To Create Rollovers in iWeb Easy!

He i tried to do this, but is doesnt work it only linkt to another html page but the images doesnt change.

<a href="route.html"

onmouseover="rollover1.src="image/route.png"';"
onmouseout="rollover1.src="image/route2.png"';">

<img src="route_files/route2.png" "name="rollover1" alt="" style="border: none; height: 225px; width: 300px; " />

</a>


could someone tell me what i am doing wrong?
robocrap is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Mar 7th, 2008, 15:59   #7 (permalink)
New Member
 
Join Date: Feb 2008
Location: London
Age: 32
Posts: 3
Re: How To Create Rollovers in iWeb Easy!

I had similar problems. Try removing the inverted commas and replace with apostrophes, so instead of...

onmouseover="rollover1.src="image/route.png"';"
onmouseout="rollover1.src="image/route2.png"';">

you have...

onmouseover="rollover1.src='image/route.png';"
onmouseout="rollover1.src='image/route2.png';">

Also, try removing the inverted commas before name...

<img src="route_files/route2.png" "name="rollover1" alt="" style="border: none; height: 225px; width: 300px; " />

so it's just...

<img src="route_files/route2.png" name="rollover1" alt="" style="border: none; height: 225px; width: 300px; " />
gotgotneed is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Mar 10th, 2008, 13:30   #8 (permalink)
New Member
 
Join Date: Mar 2008
Location: dd
Age: 20
Posts: 2
Re: How To Create Rollovers in iWeb Easy!

Okay it works fine now, thanks
But uhhm someone knows if i clould change the position of the second picture when i rollover.

onmouseover="rollover1.src="image/route.png"';"

I want that this picture comes higher than the other.
robocrap is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Image Rollovers and CMS Raid JavaScript Forum 8 Oct 25th, 2007 07:50
Hyperlink Rollovers crackafaza CSS Forum 3 Aug 24th, 2007 11:43
Image Rollovers DDock3287 JavaScript Forum 14 Aug 16th, 2007 18:57
Image Rollovers DDock3287 CSS Forum 12 Aug 14th, 2007 21:23
faded rollovers benbramz Graphics Forum 7 Aug 30th, 2005 15:28



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 05:58.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59