View Full Version : Please Help
jkirac
01-07-2001, 03:04 PM
I know this is rellay stupid but I don't know the first thing about java so how do you make it when your mouse goes over a link it changes colors?
darksidepuffin
01-07-2001, 05:43 PM
hey jkirac whats goin on?
It ain't a stupid question man you just didn't know so you came to the rite place.
1st it's not java it's css(cascading style sheets) and the easiest way to get it is to use dynamic drive's onmouseover link effects wizard:http://www.dynamicdrive.com/dynamicindex5/linkover.htm
I hope I could be of assistance,
any other questions or problems contact me and i'll see what I can do,
Aim:Williamoose
Icq#98751262
Yahoo:william_cat_warrior
msn:dropalinetowilliam@hotmail.com
------------------
-_=+William Crooks+=_-
jkirac
01-07-2001, 10:20 PM
Thanks a bunch you helped a lot!
darksidepuffin
01-08-2001, 08:47 PM
no prob glad I could help :=]
------------------
-_=+William Crooks+=_-
darksidepuffin
01-23-2001, 06:12 PM
hi if you are still here then can you tell me what site you are working on?
kdjoergensen
01-23-2001, 07:28 PM
Actually it is done in a simple manner via CSS.
Put following in the head of your page:
<STYLE TYPE="TEXT/CSS">
<!--
A.mylinks:link {color: red;}
A.mylinks:hover {color: #00ff00;}
A.mylinks:visited {color: #0000ff;}
A.mylinks:active {color: #00ff00;}
-->
</STYLE>
All you do is to add a class to every link you want to behave that way:
<a href="somepage.html" class="mylinks">Click here</a>
or if you want all links in the page to behave the same way you can take the class name out entirely, e.g:
A:link {color: red;}
A:hover {color: #00ff00;}
..etc
Lets say you want to apply different colors to another set of links (mylinks2) simply copy/paste above and change the name:
<STYLE TYPE="TEXT/CSS">
<!--
A.redlink:link {color: #000000}
A.redlink:hover {color: #ff0000;}
A.redlink:visited {color: #ff00ff;}
A.redlink:active {color: #ff0000;}
A.bluelink:link {color: #000000}
A.bluelink:hover {color: #0000ff;}
A.bluelink:visited {color: #ffff00;}
A.bluelink:active {color: #0000ff;}
-->
</STYLE>
<a href="somepage" class="redlink">Here is a link</a>
<a href="someother" class="bluelink">and another</a>
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.