Log In · Register

 
image slideshow, at the top
ashlovezhockey
post Aug 15 2004, 03:10 PM
Post #1


nuMber 1 h0ckey fAn!
**

Group: Member
Posts: 11
Joined: Aug 2004
Member No: 40,380



ook, i've done this before but haven't found any pics. Now I got the pics and the script from xanga scrips doesn't work!!

here it is:
CODE
<!-- begin code provided by createblog.com -->
<script type='text/javascript'>
// image slideshow by micron
// for more xanga scripts and help go to createblog.com

// set slideshow speed in seconds
var speed = 2;

// set transition duration in seconds (only for ie 5.5+)
var duration = 1;

// set transition effect (only for ie 5.5+)
var transition = 'progid:DXImageTransform.Microsoft.Fade(Duration='+duration+')';

var images = new Array();

// url to your images
images[0] = 'http://url.to/image1.jpg';
images[1] = 'http://url.to/image2.jpg';
images[2] = 'http://url.to/image3.jpg';
images[3] = 'http://url.to/image4.jpg';

// do not edit anything below this line
var preload = new Image();
for (var i = 0; i < images.length; i++) {
preload[i] = new Image();
preload[i].src = images[i];
}

document.write('<img src='+preload[0].src+' name="slideShow">');

var j = 0;
function run() {
if (document.all) {
 document.images.slideShow.style.filter=transition;
 document.images.slideShow.filters[0].Apply();
}
document.images.slideShow.src = preload[j++].src;
if (document.all) { document.images.slideShow.filters[0].Play(); }
if (j == images.length) { j = 0; }
setTimeout('run()', speed * 1000);
}
</script>
<body onload='run()'>
<!-- end code provided by createblog.com -->


can anyone help me?? thx in advance~
 
 
Start new topic
Replies
matthufham
post Aug 15 2004, 05:23 PM
Post #2


Senior Member
****

Group: Member
Posts: 164
Joined: Jul 2004
Member No: 28,139



this isn't that hard unless the script simply doesn't work anymore, first save your images from the internet to your computer, then host them. here, photobucket, create an account first or here, image shack, just remember to delete the [img][/img] tags after you have the url, replace the one in the code but stick it in between the 'marks', it's easy to delete the ' 's because they end up being highlighted when you highlight the url.
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: