|
|
|
|
|
|
|
DHTML
Slide Show
|
<!-- Paste this code in BODY of your
web page -->
<script language="JavaScript1.2">
<!--
var sliderwidth=480
var sliderheight=145
var slidespeed=4
var leftrightslide=new Array()
var finalslide=''
leftrightslide[0]='<a href="http://www.chooseindia.com/starworld/ashgall.html"><img
src="aish1.jpg" border=0"></a>'
leftrightslide[1]='<a href="http://www.chooseindia.com/starworld/hrigall.html">
<img src="hri9.jpg">'
leftrightslide[2]='<a href="http://www.chooseindia.com/starworld/madgall.html">
<img src="mad2.jpg">'
leftrightslide[3]='<a href="http://www.chooseindia.com/starworld/ranigall.html">
<img src="rani2.jpg">'
leftrightslide[4]='<a href="http://www.chooseindia.com/starworld/kajgall.html">
<img src="kaj1.jpg">'
var copyspeed=slidespeed
for (i=0;i<leftrightslide.length;i++)
finalslide=finalslide+leftrightslide[i]+" "
if (document.all){
document.write('<marquee id="ieslider" scrollAmount=0 style="width:'+sliderwidth+'">'+finalslide+'</marquee>')
ieslider.onmouseover=new Function("ieslider.scrollAmount=0")
ieslider.onmouseout=new Function("if (document.readyState=='complete')
ieslider.scrollAmount=slidespeed")
}
function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
document.ns_slider01.visibility="show"
setTimeout("window.onresize=regenerate",450)
intializeleftrightslide()
}
if (document.all)
ieslider.scrollAmount=slidespeed
}
function intializeleftrightslide(){
document.ns_slider01.document.ns_slider02.document.write('<nobr>'+
finalslide+'</nobr>')
document. ns_slider01.document.ns_slider02.document.close()
thelength=document.ns_slider01.document.ns_slider02.document.width
scrollslide()
}
function scrollslide(){
if (document.ns_slider01.document.ns_slider02.left>=thelength*(-1)){
document.ns_slider01.document.ns_slider02.left-=slidespeed
setTimeout("scrollslide()",100)
}
else{
document.ns_slider01.document.ns_slider02.left=sliderwidth
scrollslide()
}
}
window.onload=regenerate2
//-->
</script>
<ilayer width=&{sliderwidth}; height=&{sliderheight}; name="ns_slider01"
visibility=hide>
<layer name="ns_slider02" onMouseover="slidespeed=0;" onMouseout="slidespeed=copyspeed"></layer>
</ilayer>
|
|
|
|
|