Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Text Link Rollovers, Gerat effect for your websites
saga
post May 23 2005, 10:21 AM
Post #1


Member [ Level 2 ]
Group Icon

Group: Members
Posts: 68
Joined: 23-May 05
Member No.: 5,355



Here is a simple effect for your website. What it does is when you hover your mouse icon to the text link it will change its color.

1. Write this code in the head portion of your page. The head portion is where you will find the <HEAD> tag.

a.mylink:hover {color:#FF0000}

this is the code responsible in changing the color of your text link into red if the mouse icon is pointed to the text link.

2. Whatever link you want to change into red everytime the mouse icon is pointed in to it, just add this code in the <a> tag class="mylink"
example:
<a href="http://www.yahoo.com" class="mylink">Go To Yahoo</a>

So there it goes.
But actually there are many things you can do. Not just the color. You could also change the font size or make the underline disappear. You could even make it italic or bold. Try it.
Go to the top of the page
 
+Quote Post
Nqon
post May 23 2005, 11:51 AM
Post #2


Member [ Level 1 ]
Group Icon

Group: Members
Posts: 45
Joined: 5-May 05
Member No.: 4,758



This is not right... you need to tell the browser that your writing in css.
So you need to have <style type='text/css'> before you write that line of css and </style> after. You might also want to define the way the link looks when your not hovering it.

You can do something like:
<style type='text/css'>

a.mylink {
font-family: Arial;
font-weight: bold;
color:#000000
}

a.mylink:hover {
color:#FF0000
}
</style>
and then use the class="mylink" tag.

It would show up as a black bold Arial link that turnes red when you hover it.
Go to the top of the page
 
+Quote Post
potnuru
post May 23 2005, 12:39 PM
Post #3


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 11
Joined: 22-May 05
Member No.: 5,340



I do not know as much as you guys do, but I can still produce the same effect using Microsoft FrontPage.

Just go to Page Properties, click on the advanced tab, and then click on the Rollover Effects button and specify what you want it to look like.

For those who dont know designing as well (like me) this is an easier alternative.
Go to the top of the page
 
+Quote Post
Trishtt
post May 23 2005, 09:36 PM
Post #4


Newbie [ Level 2 ]
**

Group: Validating
Posts: 13
Joined: 23-May 05
Member No.: 5,372



Well you could add blur, shadows, glowing, etc text
you could go on http://www.lissaexplains.com/fun7.shtml to know how.
And you could you could go on http://dynamicdrive.com/ to know other stuff! ( I like that site, it's the best so far! )
Go to the top of the page
 
+Quote Post
jet
post May 24 2005, 03:48 AM
Post #5


Advanced Member
Group Icon

Group: Members
Posts: 140
Joined: 24-April 05
From: Australia
Member No.: 4,289



But most of those effects only work in IE, and so the "look" of the site is totally lost for the large droves of people (myself included) that use other browsers like Mozilla Firefox. Dynamic Drive provides some nice codes for menus, calenders and such but the Internet.Com JavaScript Site has a lot more content.
Go to the top of the page
 
+Quote Post
saga
post May 25 2005, 06:59 AM
Post #6


Member [ Level 2 ]
Group Icon

Group: Members
Posts: 68
Joined: 23-May 05
Member No.: 5,355



Sori guys about the erroneous post about the text link rollovers... i was in hurry last time... anyway for my mistake i think i must give more time this time around
here is the whole code ...

CODE
<head>
<style type="text/css">
a.mylink:link {color:#000000}
a.mylink:visited {color:#000000}
a.mylink:hover {color:#FF0000}
a.mylink:active {color:#000000}

</style>
<head>

.....

anotomy of the code
i think you already knew what the <style type="text/css"> .... </style> are for. If you havent read ngon's reply it reminds the browser what kind of style you are using in your page...

a.mylink:link {color:#000000} is a class declaration of mylink as an <a> tag. The { } is the property of that class. Here we are assigning its color to be black (#000000). In this line of code it will make the text link have the color of black in its normal state which means it is not click or not being hover or a link not yet visited

a.mylink:visited {color:#000000} is the same class with the first one. The only difference is it is all about the state of the link when it will be visisted. In our example the text link using this class will remain black if someone has already visited the link.

a.mylink:hover {color:#FF0000}
is the state in which a mouse is hover to the text link. This time it will not remain black but will turn red. When the mouse is moved away from the link it will turn back to black becuase we want it to be black in its normal state using the first code a.mylink:link {color:#000000}.

a.mylink:active {color:#000000} is the same idea with the rest. This is about the active state of the link

...
I hope i made everything clear smile.gif
But actualy there are lots you can do not just color. Here are some properties you can play with...

text-decoration:value -- value could be none or underline
-- removes or put underline to the link
font-size:value -- value is the size of the font in points I guess smile.gif
-- changes the font size
font-weight:value -- it could be bold or normal
-- you cold make the font bold or just normal
font-family:value -- value will be the font face or type of font

there are lots but i think this will do....

here how to use this properties...

a.mylink:link {color:#000000;text-decoration:underline;font-family:times}
a.mylink:visited {color:#000000;text-decoration:underline;font-family:times}
a.mylink:hover {color:#FF0000;text-decoration:none;font-family:arial}
a.mylink:active {color:#000000;text-decoration:underline;font-family:times}
this sample codes will make the underline disappear, change color and change its font type to arial of a text link everytime the mouse is hover
Go to the top of the page
 
+Quote Post
warbird
post May 25 2005, 02:10 PM
Post #7


Little MechBirdie
Group Icon

Group: Members
Posts: 299
Joined: 23-March 05
From: Down here in Holland
Member No.: 3,178



Thank you a lot guys smile.gif , I was searching for this thing for months ( maybe some less, but don't care smile.gif ), the result will soon be visible on my site, when I've got the required credits. Maybe it's not very good, but I'm not very good in making sites.
Go to the top of the page
 
+Quote Post
enemista
post May 27 2005, 06:16 PM
Post #8


Newbie [ Level 1 ]
Group Icon

Group: Members
Posts: 6
Joined: 26-May 05
Member No.: 5,453



QUOTE(jet @ May 24 2005, 03:48 AM)
But most of those effects only work in IE, and so the "look" of the site is totally lost for the large droves of people (myself included) that use other browsers like Mozilla Firefox. Dynamic Drive provides some nice codes for menus, calenders and such but the Internet.Com JavaScript Site has a lot more content.
*



I would say, that majority of surfers are still using IE as their browsers.

Anyway, these rollover texts are great way to hide your affiliates links for example if you have website dedicated to selling some stuff as an affiliate, you can make those links to not look like affiliates but link 'Buy new computer here' and it will add trust to your site.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Testing New Websites Using Different Browsers(17)
  2. Unable To See Websites With Mozilla(1)
  3. Help With Background And Text Colors(8)
  4. Game Websites Anyone?(26)
  5. Free Image And Smf Hosting(6)
  6. Web-based Instant Messenger(5)
  7. Hack Websites(8)
  8. Websites Creation Record(7)
  9. Sign Up For Microsoft's New Mail(8)
  10. Pcmag: Top 101 Websites(0)
  11. Anyone Know A Good Link Exchange Program?(2)
  12. Alt Txt Tooltip Popups Over Text Links, How To Do?(11)
  13. Flash Websites(13)
  14. Getting People To Link To You(3)
  15. Making Websites For Companies(8)
  1. How Can I Include A File In A Html Page ?(11)
  2. Ready Made Websites(7)
  3. Has Anyone Seen Any Link-backs As Weird As This ?(5)
  4. Supercharge Your Broadband Link With Free DNS From OpenDNS(0)
  5. Website Directory !(3)
  6. Websites For Teens(12)
  7. Websites With Communities(7)
  8. 10 Extremely Useful Websites To Stop Big Brother From Snooping On You(5)
  9. Macromedia Flash Websites(0)


 



- Lo-Fi Version Time is now: 8th September 2008 - 07:02 AM