Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Multi-coloed links in html?

HTML

  • This topic is locked This topic is locked
7 replies to this topic

#1 techni68

techni68

    CC Addict

  • Just Joined
  • PipPipPipPipPip
  • 211 posts

Posted 23 January 2007 - 04:09 PM

How can I create multi-colored links in htmL?:confused:
  • 0

#2 techni68

techni68

    CC Addict

  • Just Joined
  • PipPipPipPipPip
  • 211 posts

Posted 23 January 2007 - 04:12 PM

What does the # mean in this code?It appears sevearl times and I know the code heps to define the background color.


<BODY TEXT="#092d07" LINK="#1FOOFF" VLINK= "#000000" ALINK="#000000" BGCOLOR="#ffffff">

:eek:
  • 0

#3 Matt

Matt

    CC Regular

  • Just Joined
  • PipPipPip
  • 46 posts

Posted 29 January 2007 - 05:58 PM

The pound sign is the sign for a color defined in hex. It tells the computer that you will be referencing a color, and tells it how to handle it. Don't take it out!

For multicolored links (I think you mean escaping the default blue color), you have to set a different style. You can do this with your global CSS, if you are using it, or by just putting a style property in the <a> tag. Like so:
<a href="http://www.google.com" STYLE="color: #C0C0C0">Visit Google!</a>

This will override the automatic blue rendering and assign the link the color of #C0C0C0, or light gray. Change the latter to whatever you please.
  • 0

#4 xtraze

xtraze

    CC Devotee

  • Just Joined
  • PipPipPipPipPipPip
  • 872 posts

Posted 31 January 2007 - 09:07 AM

If you want a link with multi colour, like a colour blend effect, Maybe you can try looking for some Javascripts or something.

I found this for you.
HTML3 Effects

Check the last section of the page. Scroll down.
  • 0

#5 Guest_Jaan_*

Guest_Jaan_*
  • Guest

Posted 03 February 2007 - 02:13 PM

well.. if u want then you can try this code:


<!-- ONE STEP TO INSTALL DANCING LINKS:

1. Add the first code in the HEAD of your HTML document -->

<!-- STEP ONE: Add the first code to the HEAD of your HTML document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<! >
<! >

<!-- Begin
function initArray() {
for (var i = 0; i < initArray.arguments.length; i++) {
this[i] = initArray.arguments[i];
}
this.length = initArray.arguments.length;
}
var colors = new initArray(
"red",
"blue",
"green",
"purple",
"black",
"tan",
"red");
delay = .5; // seconds
link = 0;
vlink = 2;
function linkDance() {
link = (link+1)%colors.length;
vlink = (vlink+1)%colors.length;
document.linkColor = colors[link];
document.vlinkColor = colors[vlink];
setTimeout("linkDance()",delay*1000);
}
linkDance();
// End -->
</script>

<!-- Be sure to include some links in your HTML page! -->

<!-- Script Size: 0.98 KB -->


now your code will have lot's of colors
  • 0

#6 techni68

techni68

    CC Addict

  • Just Joined
  • PipPipPipPipPip
  • 211 posts

Posted 03 February 2007 - 04:22 PM

Thanks to everyone here on this topic especially Jaan ..that is quite an extensive script.which I have found very helpful.
  • 0

#7 Guest_Jaan_*

Guest_Jaan_*
  • Guest

Posted 04 February 2007 - 04:21 AM

you're welcome ;)
  • 0

#8 techni68

techni68

    CC Addict

  • Just Joined
  • PipPipPipPipPip
  • 211 posts

Posted 04 February 2007 - 04:57 AM

Jaan..Glad you are here..When quality posters are aboard ..it makes reading much more delightful!
  • 0





Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download