PDA

View Full Version : need advice


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><!-- -->

Ian
05-17-2000, 02:12 PM
Hi,
Why do you have comma's in your urls? www.menslives.8k.com/main/main (http://www.menslives.8k.com/main/main) page, ferrari.jpg" ???
I suggest you take all commas and spaces out of your image names, if you still have trouble, please post again with your url and I'll be happy to look at it for you.



------------------
Ian
Web Development - Big Resources Inc
ian@123webmaster.com
ICQ: 25828668
BIG Resources.com (http://www.bigresources.com)

odin
05-17-2000, 04:38 PM
i don't know if this is it but the first image has a space in the name.It could be messing the script up?

cybersurfer
05-18-2000, 05:33 AM
Sorry, but it did not work. I ran into that problem with my thumbnails. I got rid of the spaces but to no avail this time. Note: when the page opens, on the status bar, you can see "downloading..." and it goes througth the list of the pictures but you see nothing. I haven't even named the page, just playing around until I get it right. http://menslives.8k.com/new_page_1.htm if you want to go see what I meen. The html needs editing at the top also..
www.menslives.8k.com/main/ (http://www.menslives.8k.com/main/) if you want to see the directory.
Below is edited html.

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
<meta name="Microsoft Border" content="tl, default">
</head>

<body>

<p><!--webbot bot="HTMLMarkup" startspan -->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 gtarearside.jpg";

newimage1 = new Image();
newimage1.src = "fordexcursion.jpg";

newimage2 = new Image();
newimage2.src = "mainpageferrari.jpg";

newimage3 = new Image();
newimage3.src = "mainpagewoman.jpg";

newimage4 = new Image();
newimage4.src = "mainpageerotic.jpg";

newimage5 = new Image();
newimage5.src = "mainpagehumour.gif";

newimage6 = new Image();
newimage6.src = "mainpagegames.jpg";

newimage7 = new Image();
newimage7.src = "nightvisionillustration.gif";

newimage8 = new Image();
newimage8.src = "mainpagetravel.jpg";

var i_strngth=1
var i_image=0

//enter your image urls here
var imageurl = new Array()

imageurl[0] ="/main/456m gtarearside.jpg"
imageurl[1] ="/main/fordexcursion.jpg"
imageurl[2] ="/main/mainpageferrari.jpg"
imageurl[3] ="/main/mainpagewoman.jpg"
imageurl[4] ="/main/mainpageerotic.jpg"
imageurl[5] ="/main/mainpagehumour.gif"
imageurl[6] ="/main/mainpagegames.jpg"
imageurl[7] ="/main/nightvisionillustration.gif"
imageurl[8] ="/main/mainpagetravel.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><!-- --><!--webbot
bot="HTMLMarkup" endspan -->

</body>

</html>