Add mouseover change color to links and background on Vbulletin?

Reply

Join Date: Aug 2009
Posts: 37
Reputation: Gearspro is an unknown quantity at this point 
Solved Threads: 0
Gearspro Gearspro is offline Offline
Light Poster

Add mouseover change color to links and background on Vbulletin?

 
-1
  #1
Sep 29th, 2009
Hey Daniwebs members

Was wondering if any one could tell me how to add the mouseover to links? because i've tried applying the style sheet, but it doesnt seem to be working Can someone tell me how to do this pleaseeeeeeeeeeeee
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 64
Reputation: cfajohnson is an unknown quantity at this point 
Solved Threads: 13
cfajohnson cfajohnson is offline Offline
Junior Poster in Training

Re: Add mouseover change color to links and background on Vbulletin?

 
0
  #2
Oct 4th, 2009
HTML and CSS Syntax (Toggle Plain Text)
  1. a:hover
  2. {
  3. background-color: blue;
  4. color: white;
  5. }
Chris F.A. Johnson
http://cfajohnson.com
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 37
Reputation: Gearspro is an unknown quantity at this point 
Solved Threads: 0
Gearspro Gearspro is offline Offline
Light Poster

Re: Add mouseover change color to links and background on Vbulletin?

 
0
  #3
Oct 4th, 2009
Originally Posted by cfajohnson View Post
HTML and CSS Syntax (Toggle Plain Text)
  1. a:hover
  2. {
  3. background-color: blue;
  4. color: white;
  5. }
Thanks for the info, but where in the coding do i apply this?
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 1,380
Reputation: almostbob has a spectacular aura about almostbob has a spectacular aura about almostbob has a spectacular aura about 
Solved Threads: 167
almostbob's Avatar
almostbob almostbob is offline Offline
Nearly a Posting Virtuoso

Re: Add mouseover change color to links and background on Vbulletin?

 
0
  #4
Oct 4th, 2009
external stylesheet
  1. <html>
  2. <head>
  3. <link rel="stylesheet" type="text/css" href="http://www.yoursite.com/style.css">
  4. </head>
  5. <body>
  6. bla bla bla
  7. </body>
  8. </html>
with style.css containing amid the other styles
  1. a:hover { background-color: blue; color: white; }
header styles
  1. <html>
  2. <head>
  3. <style type='text/css'>
  4. <!--
  5. a:hover { background-color: blue; color: white; }
  6. -->
  7. <style>
  8. </head>
  9. <body>
  10. bla bla bla
  11. </body></html>
inline styles
  1. <html>
  2. <head>
  3. </head>
  4. <body>
  5. <a href='thisfile' style="hover { background-color: blue; color: white; }" > thisfile </a>
  6. </body>
  7. </html>
most use external stylesheets
only one file need be altered to update the whole site
header styles, contain the full stylesheet in every page
inline styles contain the full style in every link on every page
they get exponentially bigger
each has a purpose
external stylesheet to style a site
header style to make a single page different
inline style to make a single element different
Failure is not an option It's included free, you don't have to do anything to get it
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it

Please mark solved problems, solved
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 64
Reputation: cfajohnson is an unknown quantity at this point 
Solved Threads: 13
cfajohnson cfajohnson is offline Offline
Junior Poster in Training
 
0
  #5
Oct 7th, 2009
Originally Posted by almostbob View Post
external stylesheet[code=html]
<html>
<head>
<style type='text/css'>
<!--

There is no need to comment out the style rules, and hasn't been since Netscape 4.
<a href='thisfile' style="hover { background-color: blue; color: white; }" > thisfile </a>

Where did you come up with that? It's nonsense! Did you even try it?
Chris F.A. Johnson
http://cfajohnson.com
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 1,380
Reputation: almostbob has a spectacular aura about almostbob has a spectacular aura about almostbob has a spectacular aura about 
Solved Threads: 167
almostbob's Avatar
almostbob almostbob is offline Offline
Nearly a Posting Virtuoso
 
0
  #6
Oct 7th, 2009
never left out a colon?
its a typo, Human error
<a href="http://www.w3.org/style/CSS" style="{color: blue; background: white} :visited {color: green} :hover {background: yellow} :visited:hover {color: purple} "> Example of a hyperlink to the CSS home page with special one-off visited and hover effects. </a>
Failure is not an option It's included free, you don't have to do anything to get it
If at first you dont succeed, join the club
Of course its always in the last place you look, you dont keep looking after you find it

Please mark solved problems, solved
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 64
Reputation: cfajohnson is an unknown quantity at this point 
Solved Threads: 13
cfajohnson cfajohnson is offline Offline
Junior Poster in Training
 
0
  #7
Oct 7th, 2009
Originally Posted by almostbob View Post
never left out a colon?
its a typo, Human error
<a href="http://www.w3.org/style/CSS" style="{color: blue; background: white} :visited {color: green} :hover {background: yellow} :visited:hover {color: purple} "> Example of a hyperlink to the CSS home page with special one-off visited and hover effects. </a>

That even more bizarre. Does it work anywhere?
Chris F.A. Johnson
http://cfajohnson.com
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 37
Reputation: Gearspro is an unknown quantity at this point 
Solved Threads: 0
Gearspro Gearspro is offline Offline
Light Poster
 
0
  #8
Oct 9th, 2009
Thanks for all the help guys, but can someone classify which is the best to implement on a site, because its confusing as people are saying some are really old, dont work at all etc.

Thanks.
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



Tag cloud for HTML and CSS
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC