Results 1 to 5 of 5

Thread: Interstitial Box Help

  1. #1
    Join Date
    Jan 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Interstitial Box Help

    1) Script Title: Interstitial Content Box (v1.1)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...terstitial.htm

    3) Describe problem:
    I wanted to add the following code into the 'define header' bit and hope that it will work... Any way of making it work??

    Code:
    <script language="JavaScript1.1">
    <!-- begin hiding
    
    // You may modify the following:
    	var locationAfterPreload = "javascript:interstitialBox.closeit(); return false" // URL of the page after preload finishes
    	var lengthOfPreloadBar = 300 // Length of preload bar (in pixels)
    	var heightOfPreloadBar = 30 // Height of preload bar (in pixels)
    	// Put the URLs of images that you want to preload below (as many as you want)
    	var yourImages = new Array("http://www.freewebs.com/nemesisrsclan/nemesis base.bmp","http://www.freewebs.com/nemesisrsclan/dragon.bmp", "http://www.freewebs.com/nemesisrsclan/nemesis%20flame.gif","http://www.freewebs.com/nemesisrsclan/Nemesis%20Google.PNG","http://www.freewebs.com/shadowslay3rs/Button%20Pics.bmp","http://www.freewebs.com/shadowslay3rs/Button%20Pics%20%28OMO%29.bmp","http://img.photobucket.com/albums/v259/SoldierOfChrist/titlemedium2copy.gif","http://i101.photobucket.com/albums/m52/harlem9191/NewImage2.gif","http://i101.photobucket.com/albums/m52/harlem9191/NewImage.gif","http://www.freewebs.com/nemesisrsclan/fake cbox.bmp")
    
    // Do not modify anything beyond this point!
    if (document.images) {
    	var dots = new Array() 
    	dots[0] = new Image(1,1)
    	dots[0].src = "http://www.freewebs.com/nemesisrsclan/%23000000.GIF" // default preloadbar color (note: You can substitute it with your image, but it has to be 1x1 size)
    	dots[1] = new Image(1,1)
    	dots[1].src = "http://www.freewebs.com/nemesisrsclan/8b0000.gif" // color of bar as preloading progresses (same note as above)
    	var preImages = new Array(),coverage = Math.floor(lengthOfPreloadBar/yourImages.length),currCount = 0
    	var loaded = new Array(),i,covered,timerID
    	var leftOverWidth = lengthOfPreloadBar%coverage
    }
    function loadImages() { 
    	for (i = 0; i < yourImages.length; i++) { 
    		preImages[i] = new Image()
    		preImages[i].src = yourImages[i]
    	}
    	for (i = 0; i < preImages.length; i++) { 
    		loaded[i] = false
    	}
    	checkLoad()
    }
    function checkLoad() {
    	if (currCount == preImages.length) { 
    		location.replace(locationAfterPreload)
    		return
    	}
    	for (i = 0; i <= preImages.length; i++) {
    		if (loaded[i] == false && preImages[i].complete) {
    			loaded[i] = true
    			eval("document.img" + currCount + ".src=dots[1].src")
    			currCount++
    		}
    	}
    	timerID = setTimeout("checkLoad()",10) 
    }
    // end hiding -->
    </script>
    
    </head>
    
    <body bgcolor="#1E1E1E">
    <br><br><br><br><br><br><br><br>
    <center><img id="loading" src="http://images.freewebs.com/Images/spinnerBig.gif"></center>
    <br>
    <center>
    <font size="4" color="#ffffff" face="Calligraph421 BT">NEMESIS is loading - please wait...<br>
    </font><p>
    <script language="JavaScript1.1">
    <!-- begin hiding
    // It is recommended that you put a link to the target URL just in case if the visitor wants to skip preloading
    // for some reason, or his browser doesn't support JavaScript image object.
    if (document.images) {
    	var preloadBar = ''
    	for (i = 0; i < yourImages.length-1; i++) {
    		preloadBar += '<img src="' + dots[0].src + '" width="' + coverage + '" height="' + heightOfPreloadBar + '" name="img' + i + '" align="absmiddle">'
    	}
    	preloadBar += '<img src="' + dots[0].src + '" width="' + (leftOverWidth+coverage) + '" height="' + heightOfPreloadBar + '" name="img' + (yourImages.length-1) + '" align="absmiddle">'
    	document.write(preloadBar)
    	loadImages()
    }
    document.write('<p><small><a href="javascript:window.location=locationAfterPreload">Skip Loading (not recommended)</a></small></p>')
    // end hiding -->
    </script>
    </center>
    Last edited by jscheuer1; 01-31-2008 at 03:25 PM. Reason: add code formatiing tags

  2. #2
    Join Date
    Jan 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    2 days no reply -.-

  3. #3
    Join Date
    Jan 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Anyone please reply?!!!

  4. #4
    Join Date
    Jan 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    its 26/02/08 still no reply. Someone please please please help me!!!!!!!!!!!!!

  5. #5
    Join Date
    Jan 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Why the hell won't anyone help me???
    This been on for more than a month now.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •