PDA

View Full Version : Interstitial Box Help



Harlem9191 Of Nem
01-30-2008, 07:01 PM
1) Script Title: Interstitial Content Box (v1.1)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/interstitial.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??


<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>

Harlem9191 Of Nem
02-01-2008, 04:19 PM
2 days no reply -.-

Harlem9191 Of Nem
02-12-2008, 09:28 AM
Anyone please reply?!!!

Harlem9191 Of Nem
02-26-2008, 06:21 PM
its 26/02/08 still no reply. Someone please please please help me!!!!!!!!!!!!!

Harlem9191 Of Nem
03-02-2008, 05:22 PM
Why the hell won't anyone help me???
This been on for more than a month now.