How to assign more than one image to dif links

This is a discussion on "How to assign more than one image to dif links" within the Web Page Design section. This forum, and the thread "How to assign more than one image to dif links are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Oct 19th, 2007, 09:03
Junior Member
Join Date: Oct 2007
Location: england
Age: 23
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Talking How to assign more than one image to dif links

please can sum one tell me sum code to asign a differnt image to each link

Code: Select all
#nav a {
    width: 109px;
    height: 27px;
    background-image: url(images/aboutus.png);
    background-repeat: no-repeat;
    display: block;
    margin: 0px;
    color:#032478;
    font-size:1px;
    text-decoration:none;
    float: left;
Code: Select all
<div id ="nav">
        <a href="/" title="aboutus">About us</a>
        <a href="/" title="comparison">Comparison</a>
        <a href="/" title="faq">FAQ's</a>
        <a href="/" title="shop">Shop</a>
           <a href
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Oct 19th, 2007, 09:18
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,612
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Re: How to assign more than one image to dif links

give it a class..

Code: Select all
<a href="/" title="aboutus" class="class1" >About us</a>
<a href="/" title="comparison" class="class2">Comparison</a>
<a href="/" title="faq" class="class3">FAQ's</a>
<a href="/" title="shop" class="class4">Shop</a>
and in your css just create a style for each class:

Code: Select all
#nav a .class1{
       ....
       background-image: url(images/image1.png);
       background-repeat: no-repeat;
       ....
Code: Select all
#nav a .class2{
       ....
       background-image: url(images/image2.png);
       background-repeat: no-repeat;
       ....
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Oct 19th, 2007, 09:19
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,612
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Re: How to assign more than one image to dif links

Or you could read this [CSS For Begineer]
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Oct 19th, 2007, 10:22
Junior Member
Join Date: Oct 2007
Location: england
Age: 23
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Talking Re: How to assign more than one image to dif links

i tried it and it still doesnt work any idea why no images are showing up.

Code: Select all
<div id ="nav">
        <a href="/" title="aboutus" class="class1" >About us</a>
        <a href="/" title="comparison"class="class2">Comparison</a>
        <a href="/" title="faq"class="class3">FAQ's</a>
        <a href="/" title="shop"class="class4">Shop</a>
           <a href="/" title="contactus"class="class5">contact us</a>
</div>
Code: Select all
#nav a .class1 {
    background-image: url(images/aboutus.png);
    background-repeat:no-repeat;
    display:block;
    width: 109px;
    height: 27px;
    margin: 0px;
    color:#032478;
    font-size:1px;
    text-decoration:none;
    float: left;
}
#nav a .class2 {
    background-image:url(images/comp.png);
    background-repeat:no-repeat;
    display:block;
    width: 109px;
    height: 27px;
    margin: 0px;
    color:#032478;
    font-size:1px;
    text-decoration:none;
    float: left;
}
#nav a .class3 {
    background-image:url(images/faq.png);
    background-repeat:no-repeat;
    display:block;
    width: 109px;
    height: 27px;
    margin: 0px;
    color:#032478;
    font-size:1px;
    text-decoration:none;
    float: left;
}
#nav a .class4 {
    background-image:url(images/shop.png);
    background-repeat:no-repeat;
    display:block;
    width: 109px;
    height: 27px;
    margin: 0px;
    color:#032478;
    font-size:1px;
    text-decoration:none;
    float: left;
}
#nav a .class5 {
    background-image:url(images/contact.png);
    background-repeat:no-repeat;
    display:block;
    width: 109px;
    height: 27px;
    margin: 0px;
    color:#032478;
    font-size:1px;
    text-decoration:none;
    float: left;
}

Last edited by lostyboy; Oct 19th, 2007 at 11:56.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Oct 19th, 2007, 11:59
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: How to assign more than one image to dif links

What does the image look like? A link would help so we can see what is going on!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Oct 19th, 2007, 13:26
Junior Member
Join Date: Oct 2007
Location: england
Age: 23
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Re: How to assign more than one image to dif links

www.juxdesigns.com/New/index.html
thats the link thankyou for helping me
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Oct 19th, 2007, 13:33
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: How to assign more than one image to dif links

Ugh! Please add a mute button or and off button for that thing! I think I woke up the those 6th floor in my department.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Oct 19th, 2007, 15:40
Junior Member
Join Date: Oct 2007
Location: england
Age: 23
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Re: How to assign more than one image to dif links

sorry abut that i havent put the mute button on yet have you managed to figure out what my problem is tho
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Oct 19th, 2007, 16:24
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,795
Thanks: 0
Thanked 17 Times in 17 Posts
Re: How to assign more than one image to dif links

What type of image is it??? There are no naviagtion images on that page.. That i can recognise..
__________________
Marc
Staff Manager - Webforumz.com


Want to be a moderator? PM me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Oct 19th, 2007, 16:29
Elite Veteran
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: How to assign more than one image to dif links

When I heard the sound and didn't see an off or mute button I left ...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Oct 19th, 2007, 19:25
Highly Reputable Member
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Re: How to assign more than one image to dif links

Are you after some sort of rotating image like an animated gif for each link?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Oct 19th, 2007, 20:40
Junior Member
Join Date: Oct 2007
Location: england
Age: 23
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Re: How to assign more than one image to dif links

no just a normal image its a png because its got round edges on the images i dont even want a roll over just asign a differnt image to each one and nothing comes up is my class wrong.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old Oct 19th, 2007, 21:07
Highly Reputable Member
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Re: How to assign more than one image to dif links

why don't you just use something like

HTML: Select all
<a href="whateverpage.htm"><img src="image.png"></a>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14  
Old Oct 22nd, 2007, 04:15
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,612
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Re: How to assign more than one image to dif links

Quote:
Originally Posted by AdRock View Post
why don't you just use something like

HTML: Select all
<a href="whateverpage.htm"><img src="image.png"></a>
That's it!
It a simple solution!
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
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

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 links Kwabena Website Planning 0 May 20th, 2007 22:59
Rollover image with links on new image stoob JavaScript Forum 2 Feb 8th, 2007 22:05
One whole image w/ links Tetrisface Graphics and 3D 8 Jan 14th, 2007 10:42
Blured Links (image links) bruno89 Web Page Design 2 Jul 25th, 2006 14:48
Assign a Port No to web site in IIS humair Classic ASP 4 Apr 26th, 2004 19:33


All times are GMT. The time now is 11:14.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

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