Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- title = '' + document.title + '';
- var transaction = new Array();
- transaction[0] = '0';
- transaction[1] = '1';
- var p = transaction.length;
- // music //
- if (music == "on") {
- document.write('<bgsound src=' + musicurl + ' loop="infinite">');
- }
- if (music == "On") {
- document.write('<bgsound src=' + musicurl + ' loop="infinite">');
- }
- if (music == "ON") {
- document.write('<bgsound src=' + musicurl + ' loop="infinite">');
- }
- var lock = false;
- var run;
- function chgImg(direction) {
- if (direction) {
- if (++ImgLength == ImgNum)
- ImgLength = 0;
- } else {
- if (ImgLength == 0)
- ImgLength = ImgNum;
- ImgLength--;
- }
- var imgnumber = ImgLength + 1;
- var action = Math.round(Math.random() * (p - 1));
- if (action) {
- document.images.slideshow.style.filter = "blendTrans(duration=2)";
- document.images.slideshow.style.filter = "blendTrans(duration=crossFadeDuration)";
- document.images.slideshow.filters.blendTrans.Apply();
- document.images.slideshow.filters.blendTrans.Play();
- document.images.slideshow.src = NewImg[ImgLength][0];
- document.images.slideshow.title = ('Title: ' + NewImg[ImgLength][1] + ', By: ' + NewImg[ImgLength][2] + '. Double Click To Open Image In New Window.');
- imgartist.innerHTML = ('' + NewImg[ImgLength][2] + '');
- imgtitle.innerHTML = ('' + NewImg[ImgLength][1] + '');
- imgcomments.innerHTML = ('' + NewImg[ImgLength][3] + '');
- imgon.innerHTML = (+ImgLength + 1) + (' ');
- imgof.innerHTML = ('' + NewImg.length + ' ');
- imageonof.style.display = '';
- document.title = '' + title + ' | Image: ' + imgnumber + ' | Title: ' + NewImg[ImgLength][1] + '';
- window.status = "Image " + imgnumber + " of " + NewImg.length
- } else {
- document.images.slideshow.style.filter = "revealtrans(Transition=0)";
- document.images.slideshow.style.filter = "revealtrans(Transition=crossFadeDuration)";
- document.images.slideshow.filters.revealtrans.Apply();
- document.images.slideshow.filters.revealtrans.Play();
- document.images.slideshow.src = NewImg[ImgLength][0];
- document.images.slideshow.title = ('Title: ' + NewImg[ImgLength][1] + ', By: ' + NewImg[ImgLength][2] + '. Double Click To Open Image In New Window.');
- imgartist.innerHTML = ('' + NewImg[ImgLength][2] + '');
- imgtitle.innerHTML = ('' + NewImg[ImgLength][1] + '');
- imgcomments.innerHTML = ('' + NewImg[ImgLength][3] + '');
- imgon.innerHTML = (+ImgLength + 1) + (' ');
- imgof.innerHTML = ('' + NewImg.length + ' ');
- imageonof.style.display = '';
- document.title = '' + title + ' | Image: ' + imgnumber + ' | Title: ' + NewImg[ImgLength][1] + '';
- window.status = "Image " + imgnumber + " of " + NewImg.length
- }
- }
- function auto() {
- if (lock == true) {
- lock = false;
- window.clearInterval(run);
- document.functions.onoff.value = 'Auto Scroll';
- document.functions.back.disabled = false;
- document.functions.next.disabled = false;
- } else if (lock == false) {
- lock = true;
- if (userselectautoscroll == 'yes') {
- var delay = window.prompt("Time delay between Slides in milliseconds. Default Is " + defaultdelay + "", "" + defaultdelay + "");
- if (delay == null) {
- return false;
- } else {
- '' + delay + '';
- }
- if (delay == '') {
- alert('Sorry but you must have a value for the Time Delay. I have set it to ' + defaultdelay + '. :)');
- delay = defaultdelay;
- } else {
- '' + delay + '';
- }
- if (delay == '0') {
- alert('Sorry but you cannot use "' + delay + '" for the Time Delay. I have set it to ' + defaultdelay + '. :)');
- } else {
- '' + delay + '';
- }
- run = setInterval("chgImg(1)", '' + delay + '');
- document.functions.back.disabled = true;
- document.functions.next.disabled = true;
- document.functions.onoff.value = 'Stop';
- } else {
- var delay = "" + defaultdelay + "";
- run = setInterval("chgImg(1)", '' + delay + '');
- document.functions.back.disabled = true;
- document.functions.next.disabled = true;
- document.functions.onoff.value = 'Stop';
- }
- }
- }
- function changeimgsize() {
- document.imgoptions.heightimg.value = document.slideshow.height;
- document.imgoptions.widthimg.value = document.slideshow.width;
- }
- function changeimgtitle() {
- changeimg.title = 'Change the images height to: ' + document.imgoptions.heightimg.value + ', and change its width to: ' + document.imgoptions.widthimg.value + '.';
- }
- function openimage() {
- var imgopenurl = document.images.slideshow.src;
- var imgopenheight = document.images.slideshow.height + 60;
- var imgopenwidth = document.images.slideshow.width + 19;
- var imgheight = document.images.slideshow.height;
- var imgwidth = document.images.slideshow.width;
- var imgopenimgnum = ImgLength + 1
- imageopen = window.open("", "image", "scrollbars=no,width=" + imgopenwidth + ",height=" + imgopenheight + "");
- imageopen.document.open();
- imageopen.document.write("<HEAD><TITLE>Image: " + imgopenimgnum + " | Title: " + NewImg[ImgLength][1] + "</TITLE></HEAD>");
- imageopen.document.write("<BODY bottommargin=\"1\" bgcolor=" + imagebg + ">");
- imageopen.document.write("<CENTER><IMG SRC=\"" + imgopenurl + "\" id=\"image\" HEIGHT=\"" + imgheight + "\" WIDTH=\"" + imgwidth + "\" ALT=\"Title: " + NewImg[ImgLength][1] + " | By: " + NewImg[ImgLength][2] + "\"><p>");
- imageopen.document.write("<FONT onclick=\"window.close()\" style=\"cursor: hand; border: 1px solid black\" face=\"arial\" size=\"2\">Close This Window</FONT></CENTER>");
- imageopen.document.write("</BODY></HTML>");
- imageopen.document.close();
- }
- var nextkey = 110
- var backkey = 98
- var autokey = 97
- if (document.layers)
- document.captureEvents(Event.KEYPRESS)
- function keys(n) {
- if (document.layers) {
- if (n.which == nextkey)
- window.setTimeout('chgImg(1)', 200);
- } else if (document.all) {
- if (event.keyCode == nextkey)
- window.setTimeout('chgImg(1)', 200);
- }
- if (document.layers) {
- if (n.which == backkey)
- window.setTimeout('chgImg(0)', 200);
- } else if (document.all) {
- if (event.keyCode == backkey)
- window.setTimeout('chgImg(0)', 200);
- }
- if (document.layers) {
- if (n.which == autokey)
- window.setTimeout('auto()', 200);
- } else if (document.all) {
- if (event.keyCode == autokey)
- window.setTimeout('auto()', 200);
- }
- }
- document.onkeypress = keys
- var slideshowhtml = document.write("<center><table width=\"100%\"><tr><td><center><img src=\"javascript:chgImg(1);\" name=\"slideshow\" onresize=\"changeimgsize();\" ondblclick=\"openimage()\"><table width=\"50%\"><tr><td align=\"justify\"><table width=\"100%\" border=\"0\" summary=\"\"> <tr> <td width=\"25%\"><div align=\"left\"><font id=\"showall\" onclick=\"allimg.style.display='';hideall.disabled=false;this.disabled='true';this.style.cursor='default';hideall.style.cursor='pointer';\" style=\"cursor: deafult; border: 1px solid black\" face=\"arial\" size=\"2\" disabled><b>Show</b></font></div></td> <td width=\"25%\"><center><b> <span id=\"imageonof\" style=\"display:none\">Image <span id=\"imgon\"></span> of <span id=\"imgof\"></span></span></b></center></td> <td width=\"25%\"><div align=\"right\"><font onclick=\"allimg.style.display='none';showall.disabled=false;this.disabled='true';this.style.cursor='default';showall.style.cursor='pointer';\" id=\"hideall\" style=\"cursor: pointer; border: 1px solid black\" face=\"arial\" size=\"2\"><b>Hide</b></font></div></td> </tr></table><span id=\"allimg\"><hr color=\"black\" width=\"100%\"><b>Title:</b><span id=\"imgtitle\"></span><br><b><span id=\"artist\">Artist:</b><span id=\"imgartist\"></span></span><Br><b>Comments:</b><br><span id=\"imgcomments\"></span><hr color=\"black\" width=\"100%\"><center><font size=\"4\">Image Options</font></center><form name=\"imgoptions\"><b>Image Height:</b> <input type=\"text\" name=\"heightimg\" onchange=\"changeimgtitle();\" size=\"2\" maxlength=\"3\" style=\"border: 1px solid black\"><br><b>Image Width:</b> <input type=\"text\" name=\"widthimg\" onchange=\"changeimgtitle();\" size=\"2\" maxlength=\"3\" style=\"border: 1px solid black\"><br><center><font id=\"changeimg\" onclick=\"document.images.slideshow.style.height=document.imgoptions.heightimg.value;document.images.slideshow.style.width=document.imgoptions.widthimg.value\" style=\"cursor: pointer; border: 1px solid black\" face=\"arial\" size=\"2\"><b>Change</b></font> <font onclick=\"document.images.slideshow.style.height=null;document.images.slideshow.style.width=null\" style=\"cursor: pointer; border: 1px solid black\" face=\"arial\" size=\"2\"><b>Normal Size</b></font></center></form></span><hr color=\"black\" width=\"100%\"><form name=\"functions\"><center><input type=\"button\" style=\"border: 1px solid black\" value=\"< < Previous\" name=\"back\" title=\"< < Previous || Key: B\" onclick=\"chgImg(0)\"> <input type=\"button\" name=\"onoff\" value=\"Auto Scroll\" onclick=\"auto();\" style=\"border: 1px solid black\" title=\"Auto Scroll || Key: A\"> <input type=\"button\" name=\"next\" value=\"Next > >\" title=\"Next > > || Key: N\" style=\"border: 1px solid black\" onclick=\"chgImg(+1)\"></form></center></td></tr></table></td></tr></table></center>");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement