Programalama > JAVA SCRIPT

Etiketler: form, color

Ort. 0
Puan ver:
<CENTER>
<style>

<!--

/*change the color name below to the color you want initially applied to the button. ie:blue*/



.initial2{font-weight:bold;background-color:lime}

//-->

</style>



<script>

<!--



/*

Rollover background-color button Script- 

© Dynamic Drive (www.dynamicdrive.com)

For full source code, installation instructions,

100's more DHTML scripts, and Terms Of

Use, visit dynamicdrive.com

*/



function change(color){

var el=event.srcElement

if (el.tagName=="INPUT"&&el.type=="button")

event.srcElement.style.backgroundColor=color

}



function jumpto2(url){

window.location=url

}



//-->

</script>
<form onMouseover="change('red')" onMouseout="change('lime')">

<input type="button" value="Link 1 " class="initial2" onClick="jumpto2('http://')">

<input type="button" value="Link 2 " class="initial2" onClick="jumpto2('http://')">

<input type="button" value="Link 3 " class="initial2"  onClick="jumpto2('http://')">
<input type="button" value="Link 4 " class="initial2"  onClick="jumpto2('http://')">

</form>
</center>



Yorumlar                 Yorum Yaz
Bu hazır kod'a ilk yorumu siz yapın!
KATEGORİLER
ASP - 240
ASP.NET - 24
C# - 75
C++ - 174
CGI - 8
DELPHI - 247
FLASH - 49
HTML - 536
PASCAL - 246
PERL - 11
PHP - 160
WML - 9
XML - 2
Copyright © 2002 - 2024 Hazır Kod - Tüm Hakları Saklıdır.
Siteden yararlanırken gizlilik ilkelerini okumanızı tavsiye ederiz.
hazirkod.com bir İSOBİL projesidir.