HisakataWarabe
02-22-2005, 08:57 PM
alrite if u look at my xanga site here http://www.xanga.com/home.aspx?user=HisakataWarabe
under expertise i have moving pix but if u notice my "AIM" and "Memeber since" also moves with the pix... wuts wrong with my code because i only want my pix to move
</style></head><body><span><div style="height: 20px"></div><script LANGUAGE="JavaScript">
//slider's width
var swidth=980
//slider's height
var sheight=125
//slider's speed;
var sspeed=30
var imagef=''
//images: change to your own
var leftimage=new Array();
leftimage[0]='<img src="http://img.photobucket.com/albums/v239/hisakatawarabe/metop.jpg" width=150 height=120 border=1>'
leftimage[1]='<img src="http://img.photobucket.com/albums/v239/hisakatawarabe/lookaway.jpg" width=150 height=120 border=1>'
leftimage[2]='<img src="http://img.photobucket.com/albums/v239/hisakatawarabe/room.jpg" width=150 height=120 border=1>'
leftimage[3]='<img src="http://img.photobucket.com/albums/v239/hisakatawarabe/cayleric.jpg" width=150 height=120 border=1>'
leftimage[4]='<img src="http://img.photobucket.com/albums/v239/hisakatawarabe/e6_edited.jpg" width=150 height=120 border=1>'
leftimage[5]='<img src="http://img.photobucket.com/albums/v239/hisakatawarabe/wink.jpg" width=150 height=120 border=1>'
leftimage[6]='<img src="http://img.photobucket.com/albums/v239/hisakatawarabe/ME2.jpg" width=150 height=120 border=1>'
for (mi=0;mi<leftimage.length;mi++)
imagef=imagef+leftimage[mi]
function start(){
if (document.all) return
if (document.getElementById){
document.getElementById("slider").style.visibility="show"
initial6(document.getElementById('slider'))
}
else if(document.layers){
document.slider1.visibility="show"
intialslide()
}
}
function intialslide(){
document.slider1.document.slider2.document.write('<nobr>'+imagef+'</nobr>')
document.slider1.document.slider2.document.close()
thel=document.slider1.document.slider2.document.wi dth
document.slider1.document.slider2.left-=thel
sslide()
}
function sslide(){
if (document.slider1.document.slider2.left>=thel*(-1)){
document.slider1.document.slider2.left-=sspeed
("sslide()",160)
}
else{
document.slider1.document.slider2.left=swidth
sslide()
}
}
function initial6(whichdiv){
tdiv6=
tdiv6.innerHTML=('<nobr>'+imagef+'</nobr>')
tdiv6.style.left=swidth
thel=swidth*leftimage.length
scroll6()
}
function scroll6(){
if (parseInt(tdiv6.style.left)>=thel*(-1)){
tdiv6.style.left=parseInt(tdiv6.style.left)-sspeed
("scroll6()",160)
}
else{
tdiv6.style.left=swidth
scroll6()
}
}
//You might run into a position problem within the page, using either
//NS4.x or NS6.x. To correct this use the coordinates: 'left=value',
//'top=value' within ilayer/layer tags or 'position: static/absolute;
//left:value;top:value;' within NS6's div tags.
//Those values can be either positive or negative!
//Make sure you've got the onload='...;' within body tag but without
//takeFocus(); there!
</script>
<body onload="start()">
<script LANGUAGE="JavaScript">
if (document.all){
document.write('<marquee id="slidere" scrollAmount=2 style="width:980;height:110;">'+imagef+'</marquee>')
slidere.onmouseover=new Function("slidere.scrollAmount=0")
slidere.onmouseout=new Function("if (document.readyState=='complete') slidere.scrollAmount=2")
}
if (document.layers){
document.write('<ilayer width=980 height=110 name="slider1" bgcolor="black" visibility=hide>')
document.write('<layer name="slider2" onMouseover="sspeed=0;" onMouseout="sspeed=2">')
document.write('</layer>')
document.write('</ilayer>')
}
if (document.getElementById&&!document.all){
document.write('<div style="position: static;width:980;height:110;clip:rect(0 980 110 0);">')
document.write('<div id="slider" style="position: static;width:&{swidth};" onMouseover="sspeed=0;" onMouseout="sspeed=2">')
document.write('</div></div>')
}
</script>
under expertise i have moving pix but if u notice my "AIM" and "Memeber since" also moves with the pix... wuts wrong with my code because i only want my pix to move
</style></head><body><span><div style="height: 20px"></div><script LANGUAGE="JavaScript">
//slider's width
var swidth=980
//slider's height
var sheight=125
//slider's speed;
var sspeed=30
var imagef=''
//images: change to your own
var leftimage=new Array();
leftimage[0]='<img src="http://img.photobucket.com/albums/v239/hisakatawarabe/metop.jpg" width=150 height=120 border=1>'
leftimage[1]='<img src="http://img.photobucket.com/albums/v239/hisakatawarabe/lookaway.jpg" width=150 height=120 border=1>'
leftimage[2]='<img src="http://img.photobucket.com/albums/v239/hisakatawarabe/room.jpg" width=150 height=120 border=1>'
leftimage[3]='<img src="http://img.photobucket.com/albums/v239/hisakatawarabe/cayleric.jpg" width=150 height=120 border=1>'
leftimage[4]='<img src="http://img.photobucket.com/albums/v239/hisakatawarabe/e6_edited.jpg" width=150 height=120 border=1>'
leftimage[5]='<img src="http://img.photobucket.com/albums/v239/hisakatawarabe/wink.jpg" width=150 height=120 border=1>'
leftimage[6]='<img src="http://img.photobucket.com/albums/v239/hisakatawarabe/ME2.jpg" width=150 height=120 border=1>'
for (mi=0;mi<leftimage.length;mi++)
imagef=imagef+leftimage[mi]
function start(){
if (document.all) return
if (document.getElementById){
document.getElementById("slider").style.visibility="show"
initial6(document.getElementById('slider'))
}
else if(document.layers){
document.slider1.visibility="show"
intialslide()
}
}
function intialslide(){
document.slider1.document.slider2.document.write('<nobr>'+imagef+'</nobr>')
document.slider1.document.slider2.document.close()
thel=document.slider1.document.slider2.document.wi dth
document.slider1.document.slider2.left-=thel
sslide()
}
function sslide(){
if (document.slider1.document.slider2.left>=thel*(-1)){
document.slider1.document.slider2.left-=sspeed
("sslide()",160)
}
else{
document.slider1.document.slider2.left=swidth
sslide()
}
}
function initial6(whichdiv){
tdiv6=
tdiv6.innerHTML=('<nobr>'+imagef+'</nobr>')
tdiv6.style.left=swidth
thel=swidth*leftimage.length
scroll6()
}
function scroll6(){
if (parseInt(tdiv6.style.left)>=thel*(-1)){
tdiv6.style.left=parseInt(tdiv6.style.left)-sspeed
("scroll6()",160)
}
else{
tdiv6.style.left=swidth
scroll6()
}
}
//You might run into a position problem within the page, using either
//NS4.x or NS6.x. To correct this use the coordinates: 'left=value',
//'top=value' within ilayer/layer tags or 'position: static/absolute;
//left:value;top:value;' within NS6's div tags.
//Those values can be either positive or negative!
//Make sure you've got the onload='...;' within body tag but without
//takeFocus(); there!
</script>
<body onload="start()">
<script LANGUAGE="JavaScript">
if (document.all){
document.write('<marquee id="slidere" scrollAmount=2 style="width:980;height:110;">'+imagef+'</marquee>')
slidere.onmouseover=new Function("slidere.scrollAmount=0")
slidere.onmouseout=new Function("if (document.readyState=='complete') slidere.scrollAmount=2")
}
if (document.layers){
document.write('<ilayer width=980 height=110 name="slider1" bgcolor="black" visibility=hide>')
document.write('<layer name="slider2" onMouseover="sspeed=0;" onMouseout="sspeed=2">')
document.write('</layer>')
document.write('</ilayer>')
}
if (document.getElementById&&!document.all){
document.write('<div style="position: static;width:980;height:110;clip:rect(0 980 110 0);">')
document.write('<div id="slider" style="position: static;width:&{swidth};" onMouseover="sspeed=0;" onMouseout="sspeed=2">')
document.write('</div></div>')
}
</script>