Unstoppable Domains

Cool code

Spaceship Spaceship
Watch
PHP:
<style type="text/css">

.gallerycontroller{
width: 250px

height: 300px
}

</style>

<script type="text/javascript">
var tickspeed=3000 //ticker speed in miliseconds (2000=2 seconds)
var displaymode="auto" //displaymode ("auto" or "manual"). No need to modify as form at the bottom will control it, unless you wish to remove form.

if (document.getElementById){
document.write('<style type="text/css">\n')
document.write('.gallerycontent{display:none;}\n')
document.write('</style>\n')
}

var selectedDiv=0
var totalDivs=0

function getElementbyClass(classname){
partscollect=new Array()
var inc=0
var alltags=document.all? document.all.tags("DIV") : document.getElementsByTagName("*")
for (i=0; i<alltags.length; i++){
if (alltags[i].className==classname)
partscollect[inc++]=alltags[i]
}
}

function contractall(){
var inc=0
while (partscollect[inc]){
partscollect[inc].style.display="none"
inc++
}
}

function expandone(){
var selectedDivObj=partscollect[selectedDiv]
contractall()
selectedDivObj.style.display="block"
if (document.gallerycontrol)
temp.options[selectedDiv].selected=true
selectedDiv=(selectedDiv<totalDivs-1)? selectedDiv+1 : 0
if (displaymode=="auto")
autocontrolvar=setTimeout("expandone()",tickspeed)
}

function populatemenu(){
temp=document.gallerycontrol.menu
for (m=temp.options.length-1;m>0;m--)
temp.options[m]=null
for (i=0;i<totalDivs;i++){
var thesubject=partscollect[i].getAttribute("subject")
thesubject=(thesubject=="" || thesubject==null)? "paintball "+(i+1) : thesubject
temp.options[i]=new Option(thesubject,"")
}
temp.options[0].selected=true
}

function manualcontrol(menuobj){
if (displaymode=="manual"){
selectedDiv=menuobj
expandone()
}
}

function preparemode(themode){
displaymode=themode
if (typeof autocontrolvar!="undefined")
clearTimeout(autocontrolvar)
if (themode=="auto"){
document.gallerycontrol.menu.disabled=true
autocontrolvar=setTimeout("expandone()",tickspeed)
}
else
document.gallerycontrol.menu.disabled=false
}

function startgallery(){
if (document.getElementById("controldiv")) //if it exists
document.getElementById("controldiv").style.display="block"
getElementbyClass("gallerycontent")
totalDivs=partscollect.length
if (document.gallerycontrol){
populatemenu()
if (document.gallerycontrol.mode){
for (i=0; i<document.gallerycontrol.mode.length; i++){
if (document.gallerycontrol.mode[i].checked)
displaymode=document.gallerycontrol.mode[i].value

}
}
}
if (displaymode=="auto" && document.gallerycontrol)
document.gallerycontrol.menu.disabled=true
expandone()
}

if (window.addEventListener)
window.addEventListener("load", startgallery, false)
else if (window.attachEvent)
window.attachEvent("onload", startgallery)
else if (document.getElementById)
window.onload=startgallery

</script>

<div class="gallerycontent">
<img src="logo.PNG">
</div>

<div class="gallerycontent">
<img src="untitled.bmp">
</div>

<div class="gallerycontent">
<img src="cool.bmp">
</div>

<!--HTML for gallery control options below. Remove checkboxes or entire outer DIV if desired -->
<br>

Auto: <input type="radio" checked name="mode" value="auto" onClick="preparemode('auto')"> 
</form>
</div>
Here is a code that makes a picture or something move like soo...
www.paintball540.microsonic.org

-Coolprogram
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable DomainsUnstoppable Domains
the script look s pretty coool! but what does it do?
 
0
•••
This code can change your logo in your website, like if you want it to say something other than your logo it will switch to that...It's pretty cool. I used it for a while, I think this is a dead post though so I won't post here again.
 
0
•••
Would you please give a working link so we can see what it does?
 
0
•••
Sure thing.
here is the code above^^^^

Oh and the speed rate you can make it faster or slower. That was my old logo for paintball540.microsonic.org it;s now www.tuttorial.com and a pack of cards I found on the internet.
-CP
 
Last edited:
0
•••
cool ! thanx for the info.!
 
0
•••
hmmm, very nice i made one once in JS it went wrong lol
 
0
•••
LOL yeah, it took me quite sometime to do this, I eventually figured it out lol.
-CP
 
0
•••
Unstoppable Domains
Domain Recover
DomainEasy โ€” Live Options
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back