<?php
#### Generated by Block Creator ###
#### Powerd by Majid Alavizadeh ###
#### Download other tools from [url]www.majidonline.com[/url] ###
if (eregi("block-Block_Creator.php",$PHP_SELF)) {
Header("Location: index.php");
die();
}
$content = "<P align=center>&nbsp;<A href=\"http://www.domain.com\"><IMG ";
$content .= "style=\"BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-BOTTOM: #000000 1px solid\" ";
$content .= "hspace=0 src=\"images/adv/domain.gif\" ";
$content .= "align=baseline border=0></A></P> ";
$content .= "<P align=center><p align=\"center\"><p align=\"center\"><div align=\"center\"><SCRIPT language=JavaScript1.2> ";
$content .= "var slideshow_width='100px' //SET SLIDESHOW WIDTH (set to largest image's width if multiple dimensions exist) ";
$content .= "var slideshow_height='100px' //SET SLIDESHOW HEIGHT (set to largest image's height if multiple dimensions exist) ";
$content .= "var pause=3000 //SET PAUSE BETWEEN SLIDE (2000=10 seconds) ";
$content .= "var slidebgcolor=\"black\" ";
$content .= "var dropimages=new Array() ";
$content .= "dropimages[0]=\"images/adv/first2.gif\" ";
$content .= "dropimages[1]=\"images/adv/two.gif\" ";
$content .= "dropimages[2]=\"images/adv/three.gif\" ";
$content .= "var droplinks=new Array() ";
$content .= "droplinks[0]=\"http://www.domain.com/\" ";
$content .= "droplinks[1]=\"http://www.domain.com/\" ";
$content .= "droplinks[2]=\"http://www.domain.com/\" ";
$content .= "var preloadedimages=new Array() ";
$content .= "for (p=0;p<dropimages.length;p++){ ";
$content .= "preloadedimages[p]=new Image() ";
$content .= "preloadedimages[p].src=dropimages[p] ";
$content .= "} ";
$content .= "var ie4=document.all ";
$content .= "var dom=document.getElementById ";
$content .= "if (ie4||dom) ";
$content .= "document.write('<div style=\"position:relative;width:'+slideshow_width+';height:'+slideshow_height+';overflow:hidden\"><div id=\"canvas0\" style=\"position:absolute;width:'+slideshow_width+';height:'+slideshow_height+';background-color:'+slidebgcolor+';left:-'+slideshow_width+'\"></div><div id=\"canvas1\" style=\"position:absolute;width:'+slideshow_width+';height:'+slideshow_height+';background-color:'+slidebgcolor+';left:-'+slideshow_width+'\"></div></div>') ";
$content .= "else ";
$content .= "document.write('<a href=\"javascript:rotatelink()\"><img name=\"defaultslide\" src=\"'+dropimages[0]+'\" border=0></a>') ";
$content .= "var curpos=parseInt(slideshow_width)*(-1) ";
$content .= "var degree=10 ";
$content .= "var curcanvas=\"canvas0\" ";
$content .= "var curimageindex=linkindex=0 ";
$content .= "var nextimageindex=1 ";
$content .= "function movepic(){ ";
$content .= "if (curpos<0){ ";
$content .= "curpos=Math.min(curpos+degree,0) ";
$content .= "tempobj.style.left=curpos+\"px\" ";
$content .= "} ";
$content .= "else{ ";
$content .= "clearInterval(dropslide) ";
$content .= "nextcanvas=(curcanvas==\"canvas0\")? \"canvas0\" : \"canvas1\" ";
$content .= "tempobj=ie4? eval(\"document.all.\"+nextcanvas) : document.getElementById(nextcanvas) ";
$content .= "var slideimage='<img src=\"'+dropimages[curimageindex]+'\" border=0>' ";
$content .= "tempobj.innerHTML=(droplinks[curimageindex]!=\"\")? '<a href=\"'+droplinks[curimageindex]+'\">'+slideimage+'</a>' : slideimage ";
$content .= "nextimageindex=(nextimageindex<dropimages.length-1)? nextimageindex+1 : 0 ";
$content .= "setTimeout(\"rotateimage()\",pause) ";
$content .= "} ";
$content .= "} ";
$content .= "function rotateimage(){ ";
$content .= "if (ie4||dom){ ";
$content .= "resetit(curcanvas) ";
$content .= "var crossobj=tempobj=ie4? eval(\"document.all.\"+curcanvas) : document.getElementById(curcanvas) ";
$content .= "crossobj.style.zIndex++ ";
$content .= "var temp='setInterval(\"movepic()\",50)' ";
$content .= "dropslide=eval(temp) ";
$content .= "curcanvas=(curcanvas==\"canvas0\")? \"canvas1\" : \"canvas0\" ";
$content .= "} ";
$content .= "else ";
$content .= "document.images.defaultslide.src=dropimages[curimageindex] ";
$content .= "linkindex=curimageindex ";
$content .= "curimageindex=(curimageindex<dropimages.length-1)? curimageindex+1 : 0 ";
$content .= "} ";
$content .= "function rotatelink(){ ";
$content .= "if (droplinks[linkindex]!=\"\") ";
$content .= "window.location=droplinks[linkindex] ";
$content .= "} ";
$content .= "function resetit(what){ ";
$content .= "curpos=parseInt(slideshow_width)*(-1) ";
$content .= "var crossobj=ie4? eval(\"document.all.\"+what) : document.getElementById(what) ";
$content .= "crossobj.style.left=curpos+\"px\" ";
$content .= "} ";
$content .= "function startit(){ ";
$content .= "var crossobj=ie4? eval(\"document.all.\"+curcanvas) : document.getElementById(curcanvas) ";
$content .= "crossobj.innerHTML='<a href=\"'+droplinks[curimageindex]+'\"><img src=\"'+dropimages[curimageindex]+'\" border=0></a>' ";
$content .= "rotateimage() ";
$content .= "} ";
$content .= "if (ie4||dom) ";
$content .= "window.onload=startit ";
$content .= "else ";
$content .= "setInterval(\"rotateimage()\",pause) ";
$content .= " </SCRIPT></div></body></html></P> ";
$content .= "<P align=center><A href=\"http://www.mydomain.com/\"><IMG height=33 ";
$content .= "alt=\"HotHint - Top Persian Websites\" hspace=0 ";
$content .= "src=\"images/adv/logo.gif\" width=84 align=baseline ";
$content .= "border=0></A></P> ";
?>