BluePink BluePink
XHost
Servere virtuale de la 20 eur / luna. Servere dedicate de la 100 eur / luna - servicii de administrare si monitorizare incluse. Colocare servere si echipamente de la 75 eur / luna. Pentru detalii accesati site-ul BluePink.
enter page web design web resource entertainment personals  

Tricks: How to...
Image effects:
Preload images
Preload images 2
Swap images
Swap images 2
View larger image
Image transparency
Image slideshow
Special effects:
Border
Border 2
Watermark
Scroller
Scroller 2
Link hover color
Custom cursor
Snowing
Auto window resizer
Link tips
Popup
Buttons & menus:
Back button
Java buttons
Flat buttons
Slide menu
Drop down menu
Alphabet menu
Mouse effects:
Elastic mouse
Mouse snake
Mouse stars
Mouse orbit
Mouse eyes
Text generators:
Infobox
Quote generator
Fading messages
Text fader
Text glow
Credits

home > real world > web resource > web source codes >

This link will turn white on blue background: source.html

This link will turn yellow on red background: source.html

STEP 1/2: Put this code into the <HEAD> of your document:

<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function doColor(item, color, bg) {
item.style.color = color; // changes text color
item.style.backgroundColor = bg; // changes background
}

function undoColor(item) {
item.style.color = "#9999ff"; // sets color back to blue
item.style.backgroundColor = ""; // sets background to default
}
// End -->
</script>
</HEAD>

STEP 2/2:Copy this code into the <BODY> of your HTML document:

<BODY>
<P>This link will turn white on blue background: <a name="link1" href="source.html" onmouseover="doColor(link1, 'white','#7788ff');" onmouseout="undoColor(link1);">source.html</a></P>

<P>This link will turn yellow on red background: <a name="link2" href="source.html" onmouseover="doColor(link2, 'yellow','red');" onmouseout="undoColor(link2);">source.html</a></P>
</BODY>
© copyright 2004 - DigitalElf.ro - marian_dumitriu@yahoo.com