Go Back  HTML Forums - Free Webmaster Forums and Help Forums > WEBSITE DEVELOPMENT > CSS
User Name:
Password:
 

Reply
Thread Tools   Display Modes
  View First Unread
 
Old 05-07-2008, 10:31 AM
  #1
maskedcrypt
Novice (Level 1)
 
Join Date: May 2008
Posts: 7
iTrader: (0)
maskedcrypt is an unknown quantity at this point
i need help with some CSS!

im trying to get something like this but for it to work on a image so when the mouse hovers over the image the image well change etheir size or change to a bigger image right now i have it changing a link text size i want to use that to change a image for one to another.


a, a:link, a:visited, a:active {
text-transform:uppercase;
font-size:20px;
font-weight:normal;
font-family:small fonts;
text-decoration:none;
color:black;
}
a:hover {
text-transform:uppercase;
font-size:30px;
font-weight:normal;
font-family:small fonts;
text-decoration:none;
color:99ff33;
}

Last edited by maskedcrypt : 05-09-2008 at 10:33 AM.
maskedcrypt is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 05-07-2008, 02:42 PM
  #2
jessnoonyes
Soldier (Level 11)
 
Join Date: Feb 2007
Posts: 119
iTrader: (0)
jessnoonyes is an unknown quantity at this point
a, a:link, a:visited, a:active {
text-transform:uppercase;
font-size:20px;
font-weight:normal;
font-family:small fonts;
text-decoration:none;
color:black;
background: url(image.jpg);
}
a:hover {
text-transform:uppercase;
font-size:30px;
font-weight:normal;
font-family:small fonts;
text-decoration:none;
color:99ff33;
background: url(hoverimage.jpg);
}
jessnoonyes is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 05-09-2008, 09:32 AM
  #3
maskedcrypt
Novice (Level 1)
 
Join Date: May 2008
Posts: 7
iTrader: (0)
maskedcrypt is an unknown quantity at this point
thank you, but now i have another problem how do i do that for muilt images i mean i dont want them all to change to the same one...
maskedcrypt is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 05-09-2008, 09:38 AM
  #4
maskedcrypt
Novice (Level 1)
 
Join Date: May 2008
Posts: 7
iTrader: (0)
maskedcrypt is an unknown quantity at this point
and yet another problem arrises its changing the background of my links but not the image... ahh this is confusing how would you do this in java ?
maskedcrypt is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 05-09-2008, 10:08 AM
  #5
Pegasus
The Flighty Admin
 
Pegasus's Avatar
 
Join Date: Nov 2001
Location: 35º South of Santa Claus
Posts: 17,599
iTrader: (0)
Pegasus has a spectacular aura aboutPegasus has a spectacular aura aboutPegasus has a spectacular aura about
You could make up an id for each link and put the new background information into it.

Your CSS would look something like this:
PHP Code:
a, a:link, a:visited, a:active {
text-transform:uppercase;
font-size:20px;
font-weight:normal;
font-family: Arial Helvetica sans-serif;
text-decoration:none;
color:black;
}
a:hover {
text-transform:uppercase;
font-size:30px;
font-weight:normal;
font-family: Arial Helvetica sans-serif;
text-decoration:none;
color:99ff33;
}
a.idname:link, a.idname:visited, a.idname:active {background-image: url("image.jpg"); }
a.idname:hover {background-image: url("image2.jpg"); }
And you'd have to make each different image combination just like this one, where idname is the name of your identifier. The links would look like this:

HTML Code:
<a href="linkto.html" id="idname1">Link</a><br>
<a href="linkto2.html" id="idname2">Link 2</a><br>
And so on for all the links.
__________________


Decaf is the root of all evil...
HTMLForums Awards - The Winners Are...
Pegasus is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 05-09-2008, 10:33 AM
  #6
maskedcrypt
Novice (Level 1)
 
Join Date: May 2008
Posts: 7
iTrader: (0)
maskedcrypt is an unknown quantity at this point
thank you! ill use this and java this helps alot.
maskedcrypt is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Old 05-09-2008, 10:37 AM
  #7
Pegasus
The Flighty Admin
 
Pegasus's Avatar
 
Join Date: Nov 2001
Location: 35º South of Santa Claus
Posts: 17,599
iTrader: (0)
Pegasus has a spectacular aura aboutPegasus has a spectacular aura aboutPegasus has a spectacular aura about
You're quite welcome. Let me know if it doesn't work out as you expected it to.
__________________


Decaf is the root of all evil...
HTMLForums Awards - The Winners Are...
Pegasus is offline   Add to del.icio.us Add to del.icio.us    Can you digg it?Can you digg it? Reply With Quote
Reply


 
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
  
 
 
 



 
  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
Thread Tools
Display Modes

Forum Jump

 

All times are GMT -5. The time now is 06:17 PM.

   

Mascot team created by Drawshop.com

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

Server Monitoring by ENIACmonitor 0.01
HTMLforums.com © Big Resources, Inc. Web Design by BoxedArt.com
vRewrite 1.5 beta SEOed URLs completed by Tech Help Forum and Chalo Na.