Cekaf گفت:فرض كنيم يك search engine ساده ساخته ايم واسه سايت... بجاي دكمه Search چه كدي رو توي DreamW استفاده كنم تا بجاي اون دكمه (button) ، عكس قرار بدم؟
لطفا اگر تا حالا كار كرديد جواب بدين، الكي پاسخ ندين.
مرسي
<a href="" onClick="parent.history.forward(); return false;" onMouseOver="self.status='Forward'; return true;"><img src="saman.jpg" border=1></a>
<style>
<!--
.initial{font-weight:bold;background-image:url(2.jpg)}
//-->
</style>
<script>
<!--
if (document.images){
after=new Image()
//change the file path below to the image you want applied when the mouse moves over
after.src="2.jpg"
}
function change2(image){
var el=event.srcElement
if (el.tagName=="INPUT"&&el.type=="button")
event.srcElement.style.backgroundImage="url"+"('"+image+"')"
}
function jumpto2(url){
window.location=url
}
//-->
</script>
<form onMouseover="change2('secondimage.jpg')" onMouseout="change2('firstimage.jpg')">
<input type="button" value="Example 1 " class="initial" onClick="jumpto2('1.htm')">
<br>
<input type="button" value="Example 2 " class="initial" onClick="jumpto2('2.htm')">
<br>
<input type="button" value="Example 3 " class="initial" onClick="jumpto2('3.htm')">
<br>
</form>