cybersurfer
05-17-2000, 08:46 AM
Hello,
I need some help with image viewer.
Here is what I changed: The names of images and the url of their location and it did not work, i then modified the url since i noticed i did not have to put the main portion (www.url.com) only the directory.
still does not work. Shown here at first modification.
The "x" does come and go.
3 parts to this script
=====================================
part 1
=======================================
<script language=javaScript>
//By A1 javascripts - http://www.a1javascripts.com/
//please retain this message if using this script
//hundreds of scripts to ehance your site at A1
<!--//
//pre load your image in here
newimage0 = new Image();
newimage0.src = "456m gta, rear + side.jpg";
newimage1 = new Image();
newimage1.src = "ford excursion.jpg";
newimage2 = new Image();
newimage2.src = "main page, ferrari.jpg";
newimage3 = new Image();
newimage3.src = "main page, woman.jpg";
newimage4 = new Image();
newimage4.src = "main page, erotic.jpg";
newimage5 = new Image();
newimage5.src = "main page, humour.jpg";
newimage6 = new Image();
newimage6.src = "main page, games.jpg";
newimage7 = new Image();
newimage7.src = "night vision illustration.jpg";
newimage8 = new Image();
newimage8.src = "main page, travel.jpg";
var i_strngth=1
var i_image=0
//enter your image urls here
var imageurl = new Array()
imageurl[0] ="www.menslives.8k.com/main/456m gta, rear + side.jpg"
imageurl[1] ="www.menslives.8k.com/main/ford excursion.jpg"
imageurl[2] ="www.menslives.8k.com/main/main page, ferrari.jpg"
imageurl[3] ="www.menslives.8k.com/main/main page, woman.jpg"
imageurl[4] ="www.menslives.8k.com/main/main page, erotic.jpg"
imageurl[5] ="www.menslives.8k.com/main/main page, humour.jpg"
imageurl[6] ="www.menslives.8k.com/main/main page, games.jpg"
imageurl[7] ="www.menslives.8k.com/main/night vision illustration.jpg"
imageurl[8] ="www.menslives.8k.com/main/main page, travel.jpg"
function showimage() {
if(document.all) {
if (i_strngth <=110) {
testimage.innerHTML="<img style='filter:alpha(opacity="+i_strngth+")' src="+imageurl[i_image]+" border=0>";i_strngth=i_strngth+10
var timer=setTimeout("showimage()",100)
}
else {
clearTimeout(timer)
var timer=setTimeout("hideimage()",10)
}
}
if(document.layers) {
clearTimeout(timer)
document.testimage.document.write("<img src="+imageurl[i_image]+" border=0>")
document.close()
i_image++
if (i_image >= imageurl.length)
{i_image=0}
var timer=setTimeout("showimage()",10000)
}
}
function hideimage() {
if (i_strngth >=-10) {
testimage.innerHTML="<img style='filter:alpha(opacity="+i_strngth+")'src="+imageurl[i_image]+" border=0>";
i_strngth=i_strngth-10
var timer=setTimeout("hideimage()",10)
}
else {
clearTimeout(timer)
i_image++
if (i_image >= imageurl.length) {i_image=0}
i_strngth=1
var timer=setTimeout("showimage()",200)
}
}
//-->
</script>
====================================================================
part 2
==================================================================
<body onLoad="showimage()">
==============================================================
part 3 - adjust your image placement in this part top: xxxpx left: xxxpx
===========================================================
<!-- --><div id="testimage" style="position:absolute;visibility:visible;top:270px;left:490px;"></div><!-- -->
I need some help with image viewer.
Here is what I changed: The names of images and the url of their location and it did not work, i then modified the url since i noticed i did not have to put the main portion (www.url.com) only the directory.
still does not work. Shown here at first modification.
The "x" does come and go.
3 parts to this script
=====================================
part 1
=======================================
<script language=javaScript>
//By A1 javascripts - http://www.a1javascripts.com/
//please retain this message if using this script
//hundreds of scripts to ehance your site at A1
<!--//
//pre load your image in here
newimage0 = new Image();
newimage0.src = "456m gta, rear + side.jpg";
newimage1 = new Image();
newimage1.src = "ford excursion.jpg";
newimage2 = new Image();
newimage2.src = "main page, ferrari.jpg";
newimage3 = new Image();
newimage3.src = "main page, woman.jpg";
newimage4 = new Image();
newimage4.src = "main page, erotic.jpg";
newimage5 = new Image();
newimage5.src = "main page, humour.jpg";
newimage6 = new Image();
newimage6.src = "main page, games.jpg";
newimage7 = new Image();
newimage7.src = "night vision illustration.jpg";
newimage8 = new Image();
newimage8.src = "main page, travel.jpg";
var i_strngth=1
var i_image=0
//enter your image urls here
var imageurl = new Array()
imageurl[0] ="www.menslives.8k.com/main/456m gta, rear + side.jpg"
imageurl[1] ="www.menslives.8k.com/main/ford excursion.jpg"
imageurl[2] ="www.menslives.8k.com/main/main page, ferrari.jpg"
imageurl[3] ="www.menslives.8k.com/main/main page, woman.jpg"
imageurl[4] ="www.menslives.8k.com/main/main page, erotic.jpg"
imageurl[5] ="www.menslives.8k.com/main/main page, humour.jpg"
imageurl[6] ="www.menslives.8k.com/main/main page, games.jpg"
imageurl[7] ="www.menslives.8k.com/main/night vision illustration.jpg"
imageurl[8] ="www.menslives.8k.com/main/main page, travel.jpg"
function showimage() {
if(document.all) {
if (i_strngth <=110) {
testimage.innerHTML="<img style='filter:alpha(opacity="+i_strngth+")' src="+imageurl[i_image]+" border=0>";i_strngth=i_strngth+10
var timer=setTimeout("showimage()",100)
}
else {
clearTimeout(timer)
var timer=setTimeout("hideimage()",10)
}
}
if(document.layers) {
clearTimeout(timer)
document.testimage.document.write("<img src="+imageurl[i_image]+" border=0>")
document.close()
i_image++
if (i_image >= imageurl.length)
{i_image=0}
var timer=setTimeout("showimage()",10000)
}
}
function hideimage() {
if (i_strngth >=-10) {
testimage.innerHTML="<img style='filter:alpha(opacity="+i_strngth+")'src="+imageurl[i_image]+" border=0>";
i_strngth=i_strngth-10
var timer=setTimeout("hideimage()",10)
}
else {
clearTimeout(timer)
i_image++
if (i_image >= imageurl.length) {i_image=0}
i_strngth=1
var timer=setTimeout("showimage()",200)
}
}
//-->
</script>
====================================================================
part 2
==================================================================
<body onLoad="showimage()">
==============================================================
part 3 - adjust your image placement in this part top: xxxpx left: xxxpx
===========================================================
<!-- --><div id="testimage" style="position:absolute;visibility:visible;top:270px;left:490px;"></div><!-- -->