Up-down floating image menu

Shout-Out

User Tag List

Results 1 to 1 of 1
  1. #1
    JavaScriptBank's Avatar Banned
    Reputation
    7
    Join Date
    Oct 2009
    Posts
    25
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Up-down floating image

    Floating background image script animates any image (or block of HTML) up and down the detail at JavaScriptBank.com - 2.000+ free JavaScript codes


    How to setup

    Step 1: Use JavaScript code below to setup the script
    JavaScript
    Code:
    <SCRIPT>
    //detecting browser to dynamically write appropriate DIVs/LAYERs
    N=(navigator.appName.indexOf('Netscape')!=-1&&parseInt(navigator.appVersion)<5)
    S=(navigator.appName.indexOf('Netscape')!=-1&&parseInt(navigator.appVersion)>4.9)
    M=(navigator.appName.indexOf('Microsoft')!=-1)
    
    
    
    Vis=new Array()
    Vis[0]=(M||S) ? "hidden" : "hide"
    Vis[1]=(M||S) ? "visible" : "show"
    
    function GetDiv(divId,divY,divX,divW,divH,bCol,visb,zInd){
    bkCol=(bCol!="")?((N)?" bgColor="+bCol:";background:"+bCol):""
    
    Styl = (M||S) ? "<DIV" : "<LAYER"
    
    if(M||S){
    Styl+=" ID="+divId
    Styl+=" style='position:absolute;top:"+divY+";left:"+divX+";width:"+divW+";height:"+divH+bkCol
    Styl+=";visibility:"+Vis[visb]+";z-index:"+zInd
    Styl+="'>"
    }
    
    if(N){
    Styl+=" ID="+divId
    Styl+=" top="+divY+" left="+divX+" width="+divW+" height="+divH+bkCol
    Styl+=" visibility="+Vis[visb]+" z-index="+zInd
    Styl+=">"
    }
    document.writeln(Styl)
    }
    
    function EndDiv(){
    (M||S)? document.writeln("</DIV>"): document.writeln("</LAYER>")
    }
    
    function PutIt(ID,dX,dY){
    if(N){
    document.layers[ID].left=dX
    document.layers[ID].top=dY
    }
    if(M){
    document.all[ID].style.left=dX
    document.all[ID].style.top=dY
    }
    if(S){
    document.getElementById(ID).style.left=dX
    document.getElementById(ID).style.top=dY
    }
    }
    
    function ShowHide(ID,vs){
    if(N){
    document.layers[ID].visibility=Vis[vs]
    }
    if(M){
    document.all[ID].style.visibility=Vis[vs]
    }
    if(S){
    document.getElementById(ID).style.visibility=Vis[vs]
    }
    }
    
    function Xof(ID){
    if(N){
    return document.layers[ID].left
    }
    if(M){
    return document.all[ID].style.left
    }
    if(S){
    return document.getElementById(ID).style.left
    }
    }
    
    function Yof(ID){
    if(N){
    return document.layers[ID].top
    }
    if(M){
    return document.all[ID].style.top
    }
    if(S){
    return document.getElementById(ID).style.top
    }
    }
    
    
    
    function Zind(ID,zz){
    if(N){
    document.layers[ID].zIndex=zz
    }
    if(M){
    document.all[ID].style.zIndex=zz
    }
    if(S){
    document.getElementById(ID).style.zIndex=zz
    }
    }
    
    function ChangeCol(ID,colrx){
    if(M)document.all[ID].style.background=colrx
    if(N)document.layers[ID].bgColor=colrx
    if(S)document.getElementById(ID).style.background=colrx
    }
    
    function DivWrite(IdName,Str) {
    if (N){
    document.layers[IdName].document.write(Str)
    document.layers[IdName].document.close()
    }
    if(M) document.all[IdName].innerHTML=Str
    if(S) document.getElementById(IdName).innerHTML=Str
    }
    </SCRIPT>
    
    <SCRIPT>
    GetDiv('Top',0,0,100,100,'pink',1,0)
    document.write("Top Place")
    EndDiv()
    GetDiv('Bottom',4000,0,100,100,'pink',1,0)
    document.write("Bottom Place")
    EndDiv()
    d=50
    y=0
    
    function Scroll(){
    y+=d
    if(y>=3800)d=-50
    if(y<=0)d=50
    window.scroll(0,y)
    }
    
    setInterval('Scroll()',50)
    
    </SCRIPT>
    	<!--
        	This script downloaded from www.JavaScriptBank.com
        	Come to view and download over 2000+ free javascript at www.JavaScriptBank.com
    	-->
    Step 2: Copy & Paste HTML code below in your BODY section
    HTML
    Code:
    <BODY background="pic191.jpg">
    </BODY>
    	<!--
        	This script downloaded from www.JavaScriptBank.com
        	Come to view and download over 2000+ free javascript at www.JavaScriptBank.com
    	-->
    Step 3: downloads
    Files
    pic191.jpg







    Up-down floating image

Similar Threads

  1. Warning: ZG Easier Boss Downing
    By Tbone in forum World of Warcraft General
    Replies: 6
    Last Post: 06-16-2006, 08:15 AM
  2. Your Favorite Image Editing Programs
    By LightWave in forum Community Chat
    Replies: 5
    Last Post: 06-15-2006, 08:02 PM
  3. Floating in air (requires mining)
    By miigu in forum World of Warcraft Exploits
    Replies: 5
    Last Post: 06-12-2006, 09:46 AM
  4. Down ZG Bloodlord with Ease
    By Matt in forum World of Warcraft Exploits
    Replies: 3
    Last Post: 06-08-2006, 01:20 PM
  5. floating in the air (thousand needles-thunder bluff)
    By bloodofwar in forum World of Warcraft Exploits
    Replies: 3
    Last Post: 06-01-2006, 06:18 PM
All times are GMT -5. The time now is 10:47 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search