[quote=lordheinz][quote=lilprincess950]nice trick duchesv!Ahhmmm question:Is there a way to put more images?[/quote]
of course heres the format..:
[quote]function embed(){ var benjo = "<br><center><form name=slideform><table cellspacing=1 cellpadding=4 bgcolor=\"#ffffff\"><tr><td align=center color=\"ffffff\" bgcolor=\"C0C0C0\"><b>Mini Photo Gallery</b></td></tr><tr><td align=center bgcolor=\"#eeeeee\" width=350 height=250><img src=\"http://theftalk.com/pix/logo_white.gif\" name=\"show\"></td></tr><tr><td align=center bgcolor=\"#C0C0C0\"><input type=button onClick=\"previous();\" value=\" \" title=\"Previous\" class=\"shirow\"><input type=button name=\"slidebutton\" onClick=\"ap(this.value);\" value=\"Start\" title=\"AutoPlay\" class=\"ducheszv\"><input type=button onClick=\"next();\" value=\" \" title=\"Next\" class=\"draco\"> <select name=\"slide\" onChange=\"change();\"><option value=\"http://theftalk.com/pix/logo_white.gif\" selected><i>Browse..</i><option value=\"URL_OF_IMG\">IMG_TITLE<option value=\"URL_OF_IMG\">IMG_TITLE<option value=\"URL_OF_IMG\">IMG_TITLE<option value=\"URL_OF_IMG\">IMG_TITLE <option value=\"URL_OF_IMG\">IMG_TITLE<option value=\"URL_OF_IMG\">IMG_TITLE</select></td></tr></table></form><br>DuchShiKnight feat. Ephemeral Copyright 2008<br>All Rights Reserved</center><div style=\"width:100%;text-align:center;\"><a href=\"http://www.friendster.com/photos/USERID\" target=\"_blank\"><b>My Photoz</a> | <a href=\"http://www.friendster.com/friendphotoupload.php?uid=USERID\" target=\"_blank\">Upload Photos For Me</b></a></div>"; document.getElementById('content_1').style.height='100%'; document.getElementById('content_1').style.overflowY='hidden'; document.getElementById('content_1').innerHTML = "<table width='100%'><tr><td align='center'>"+benjo+"</td></tr></table>"; }setTimeout("embed()",8000)
var rotate_delay = 5000; // delay in milliseconds (5000 = 5 secs)
current = 0;
function next() {
if (document.slideform.slide[current+1]) {
document.images.show.src = document.slideform.slide[current+1].value;
document.slideform.slide.selectedIndex = ++current;}
else first();}
function previous() {
if (current-1 >= 0) {
document.images.show.src = document.slideform.slide[current-1].value;
document.slideform.slide.selectedIndex = --current;}
else last();}
function first() {
current = 0;
document.images.show.src = document.slideform.slide[0].value;
document.slideform.slide.selectedIndex = 0;}
function last() {
current = document.slideform.slide.length-1;
document.images.show.src = document.slideform.slide[current].value;
document.slideform.slide.selectedIndex = current;}
function ap(text) {
document.slideform.slidebutton.value = (text == "Stop") ? "Start" : "Stop";
rotate();}
function change() {
current = document.slideform.slide.selectedIndex;
document.images.show.src = document.slideform.slide[current].value;}
function rotate() {
if (document.slideform.slidebutton.value == "Stop") {
current = (current == document.slideform.slide.length-1) ? 0 : current+1;
document.images.show.src = document.slideform.slide[current].value;
document.slideform.slide.selectedIndex = current;
window.setTimeout("rotate()", rotate_delay);}}[/quote]
if u want to add more photos
just add this <option value=\"URL_OF_IMG\">IMG_TITLE and so on...[/quote]
Oh ok.thx lordheinz i understand now.