Reply
pictures as navbar buttons
Old 06-30-2006, 12:08 AM pictures as navbar buttons
Junior Talker

Posts: 1
Name: Aneal
how do i make pictures as my navbar buttons? like here is my home page button:
sherwoodgames is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 06-30-2006, 03:02 AM Re: pictures as navbar buttons
Silent77's Avatar
Ultra Talker

Posts: 255
Name: Silent
Location: Ohio
just make it a link.

HTML Code:
<a href="index.html"><img src="http://img439.imageshack.us/img439/3228/homepagebutton5yp.gif" border=0 width=94 height=27></a>
Hope This Helps
__________________
Firefox
rediscover the web
Get Firefox today it's free! Down with internet explorer!
Silent77 is offline
Reply With Quote
View Public Profile Visit Silent77's homepage!
 
Old 06-30-2006, 11:39 AM Re: pictures as navbar buttons
LadynRed's Avatar
Super Moderator

Posts: 6,699
Location: Tennessee
Or, you could do it with CSS using the images on the links or backgrounds on the <li> depending on whether or not you want a rollover effect.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 06-30-2006, 01:18 PM Re: pictures as navbar buttons
Average Talker

Posts: 16
Location: Seattle, WA
Quote:
Originally Posted by LadynRed
Or, you could do it with CSS using the images on the links or backgrounds on the <li> depending on whether or not you want a rollover effect.
I've never seen anyone do an image rollover effect in CSS, I always did it in Javascript and assumed that was the best/only way. Now that I see this, I'm like... durrr!
vtechno42 is offline
Reply With Quote
View Public Profile Visit vtechno42's homepage!
 
Old 06-30-2006, 02:43 PM Re: pictures as navbar buttons
Moldarin's Avatar
Extreme Talker

Latest Blog Post:
Keyword Density and Title Tags
Posts: 200
Remeber to add a alternative to the image. Like this:
HTML Code:
<a href="home.html"><img src="home.gif" alt="Home" /></a>
__________________
I do not share ad revenue.
Moldarin is offline
Reply With Quote
View Public Profile
 
Old 06-30-2006, 05:32 PM Re: pictures as navbar buttons
LadynRed's Avatar
Super Moderator

Posts: 6,699
Location: Tennessee
It's easy to do image rollovers with CSS, I do it all the time: http://www.answers4gis.com
Zero javascript . It's a very simple example. A more complex example is this one: http://www.dallasmedicalspecialists.com
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club

Last edited by LadynRed : 06-30-2006 at 05:34 PM.
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 06-30-2006, 05:49 PM Re: pictures as navbar buttons
Average Talker

Posts: 16
Location: Seattle, WA
Quote:
Originally Posted by LadynRed
It's easy to do image rollovers with CSS, I do it all the time: http://www.answers4gis.com
Zero javascript . It's a very simple example. A more complex example is this one: http://www.dallasmedicalspecialists.com
whoa, that's quite slick... and since it's CSS, no worries about preloading the images. Thanks for sharing, LadynRed!
vtechno42 is offline
Reply With Quote
View Public Profile Visit vtechno42's homepage!
 
Old 07-01-2006, 02:34 PM Re: pictures as navbar buttons
LadynRed's Avatar
Super Moderator

Posts: 6,699
Location: Tennessee
Thanks, and you're welcome
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Old 07-01-2006, 03:45 PM Re: pictures as navbar buttons
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
Converting Video For YouTube
Posts: 2,337
Name: Keith Marshall
Location: West Hartford, CT
I use a rather easy method for image rollover with minimal javascript needed.

Code:
<a href="#">
  <img src="image.gif" border="0" width="xx" height="xx" alt="" onmouseover="this.src='image_over.gif';" onmouseout="this.src='image.gif';" />
</a>
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Old 07-01-2006, 03:54 PM Re: pictures as navbar buttons
rlineker's Avatar
Extreme Talker

Posts: 153
Name: Ryan
Location: UK
if i were you i wouldnt use that button. it doesnt look very good
__________________
Directory R Us
http://directory.wmnetwork.co.uk
rlineker is offline
Reply With Quote
View Public Profile Visit rlineker's homepage!
 
Old 07-02-2006, 01:52 PM Re: pictures as navbar buttons
LadynRed's Avatar
Super Moderator

Posts: 6,699
Location: Tennessee
The point is, javascript isn't necessary
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to pictures as navbar buttons
 

Thread Tools

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

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




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.16138 seconds with 12 queries