Results 1 to 10 of 10

Thread: I Need Help With Splash Script

  1. #1
    Join Date
    Apr 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation I Need Help With Splash Script

    Yes im trying to put a splash screen on my site and when i put it on from the code an the DynamicDrive Website it wont display the text, i was wondering how can i get it to show the text.

    THANKS

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format for asking a question.
    PLEASE: Include the URL to your problematic webpage that you want help with.

    Are you using same color text on same color background? Possibly without realizing it?

  3. #3
    Join Date
    Apr 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Dynamic Ss

    Dynamic Splash Screen
    Heres the link to the code.
    http://www.dynamicdrive.com/dynamici...amicsplash.htm

    Sorry didnt know about the posting rules.
    And I have the right color I even copied the code exactly and put it on my web page and it still didnt display anything. thanks

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    No biggie on the rules, lots of folks miss them. I still need a link to or a copy of your problem page pasted in a message to help.

  5. #5
    Join Date
    Apr 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    This is the code from the site link.


    <html>

    <head>
    <title>Intro Screen...</title>
    </head>

    <body bgcolor="#000000" text="#FFFFFF">

    <div id="splashcontainer" style="position:absolute;width:350px;"></div>

    <layer id="splashcontainerns" width=450></layer>


    <script>

    /*
    Dynamic Splash Screen effect- © Dynamic Drive (www.dynamicdrive.com)
    For full source code, installation instructions, 100's more DHTML scripts, and Terms Of Use,
    Visit http://dynamicdrive.com
    */

    //Specify the paths of the images to be used in the splash screen, if any.
    //If none, empty out array (ie: preloadimages=new Array())
    var preloadimages=new Array("http://abstract.simplenet.com/point.gif","http://abstract.simplenet.com/point2.gif")
    //configure delay in miliseconds between each message (default: 2 seconds)
    var intervals=2000
    //configure destination URL
    var targetdestination="http://www.dynamicdrive.com/dynamicindex3/dynamicsplash.htm"

    //configure messages to be displayed
    //If message contains apostrophe('), backslash them (ie: "I\'m fine")

    var splashmessage=new Array()
    var openingtags='<font face="Arial" size="4">'
    splashmessage[0]='<img src="http://abstract.simplenet.com/point.gif"> Welcome to Dynamic Drive <img src="http://abstract.simplenet.com/point2.gif">'
    splashmessage[1]='The premier place on the net for free DHTML scripts'
    splashmessage[2]='All scripts on this site take advantage of the latest in JavaScript/ DHTML technology'
    splashmessage[3]='With emphasis on practicality and backwards compatibility'
    splashmessage[4]='To bring true power and interactivity to your site.'
    splashmessage[5]='Please stand by...'
    var closingtags='</font>'

    //Do not edit below this line (besides HTML code at the very bottom)

    var i=0

    var ns4=document.layers?1:0
    var ie4=document.all?1:0
    var ns6=document.getElementById&&!document.all?1:0
    var theimages=new Array()

    //preload images
    if (document.images){
    for (p=0;p<preloadimages.length;p++){
    theimages[p]=new Image()
    theimages[p].src=preloadimages[p]
    }
    }

    function displaysplash(){
    if (i<splashmessage.length){
    sc_cross.style.visibility="hidden"
    sc_cross.innerHTML='<b><center>'+openingtags+splashmessage[i]+closingtags+'</center></b>'
    sc_cross.style.left=ns6?parseInt(window.pageXOffset)+parseInt(window.innerWidth)/2-parseInt(sc_cross.style.width)/2 : document.body.scrollLeft+document.body.clientWidth/2-parseInt(sc_cross.style.width)/2
    sc_cross.style.top=ns6?parseInt(window.pageYOffset)+parseInt(window.innerHeight)/2-sc_cross.offsetHeight/2 : document.body.scrollTop+document.body.clientHeight/2-sc_cross.offsetHeight/2
    sc_cross.style.visibility="visible"
    i++
    }
    else{
    window.location=targetdestination
    return
    }
    setTimeout("displaysplash()",intervals)
    }

    function displaysplash_ns(){
    if (i<splashmessage.length){
    sc_ns.visibility="hide"
    sc_ns.document.write('<b>'+openingtags+splashmessage[i]+closingtags+'</b>')
    sc_ns.document.close()

    sc_ns.left=pageXOffset+window.innerWidth/2-sc_ns.document.width/2
    sc_ns.top=pageYOffset+window.innerHeight/2-sc_ns.document.height/2

    sc_ns.visibility="show"
    i++
    }
    else{
    window.location=targetdestination
    return
    }
    setTimeout("displaysplash_ns()",intervals)
    }



    function positionsplashcontainer(){
    if (ie4||ns6){
    sc_cross=ns6?document.getElementById("splashcontainer"):document.all.splashcontainer
    displaysplash()
    }
    else if (ns4){
    sc_ns=document.splashcontainerns
    sc_ns.visibility="show"
    displaysplash_ns()
    }
    else
    window.location=targetdestination
    }
    window.onload=positionsplashcontainer

    </script>

    <!--Set href in below link to the URL of the target destination-->

    <div align="right">
    <table border="0" width="200" height="100%" cellspacing="0" cellpadding="0">
    <td width="100%" valign="bottom" align="right">
    [ <a href="http://www.dynamicdrive.com/dynamicindex3/dynamicsplash.htm"><font color="#FFFFFF">Skip Intro</font></a> ]
    </td>
    </table>
    </div>


    </body>
    </html>

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Well, that went well. Code works fine. I meant your page that you have trouble with. If that same page doesn't work on your server, it means it is likely that your server is adding something (like a script) to the page which conflicts with the splash script. If that's the trouble, I need a link to the page in a location where it is behaving badly. You don't have to put it up and make your page look bad, set up a demo in a side directory or stick the page up on your site and call it problem.htm. Once again, need to see the problem. BTW who's your host?

  7. #7
    Join Date
    Apr 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    oh the reason I put the one from the Dynamic Drive Website is because thats exactly how it looks on my site except I changed what it says. My host is Yahoo Geocities. and it works it just wont show the text. BTW thanks for all your help.

  8. #8
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Geocities huh, I happen to have experience, trouble shot a page on there for another person. They have lots of scripts they stick on there. In particular, they use the variables 'i' and 'j'. I see 'i' is used in this script but not 'j', try this modified version:

    Code:
    <html>
    
    <head>
    <title>Intro Screen...</title>
    </head>
    
    <body bgcolor="#000000" text="#FFFFFF">
    
    <div id="splashcontainer" style="position:absolute;width:350px;"></div>
    
    <layer id="splashcontainerns" width=450></layer>
    
    
    <script>
    
    /*
    Dynamic Splash Screen effect- © Dynamic Drive (www.dynamicdrive.com)
    For full source code, installation instructions, 100's more DHTML scripts, and Terms Of Use, 
    Visit http://dynamicdrive.com
    */
    
    //Specify the paths of the images to be used in the splash screen, if any.
    //If none, empty out array (ie: preloadimages=new Array())
    var preloadimages=new Array("http://abstract.simplenet.com/point.gif","http://abstract.simplenet.com/point2.gif")
    //configure delay in miliseconds between each message (default: 2 seconds)
    var intervals=2000
    //configure destination URL
    var targetdestination="http://www.dynamicdrive.com/dynamicindex3/dynamicsplash.htm"
    
    //configure messages to be displayed
    //If message contains apostrophe('), backslash them (ie: "I\'m fine")
    
    var splashmessage=new Array()
    var openingtags='<font face="Arial" size="4">'
    splashmessage[0]='<img src="http://abstract.simplenet.com/point.gif"> Welcome to Dynamic Drive <img src="http://abstract.simplenet.com/point2.gif">'
    splashmessage[1]='The premier place on the net for free DHTML scripts'
    splashmessage[2]='All scripts on this site take advantage of the latest in JavaScript/ DHTML technology'
    splashmessage[3]='With emphasis on practicality and backwards compatibility'
    splashmessage[4]='To bring true power and interactivity to your site.'
    splashmessage[5]='Please stand by...'
    var closingtags='</font>'
    
    //Do not edit below this line (besides HTML code at the very bottom)
    
    var xtd=0
    
    var ns4=document.layers?1:0
    var ie4=document.all?1:0
    var ns6=document.getElementById&&!document.all?1:0
    var theimages=new Array()
    
    //preload images
    if (document.images){
    for (p=0;p<preloadimages.length;p++){
    theimages[p]=new Image()
    theimages[p].src=preloadimages[p]
    }
    }
    
    function displaysplash(){
    if (xtd<splashmessage.length){
    sc_cross.style.visibility="hidden"
    sc_cross.innerHTML='<b><center>'+openingtags+splashmessage[xtd]+closingtags+'</center></b>'
    sc_cross.style.left=ns6?parseInt(window.pageXOffset)+parseInt(window.innerWidth)/2-parseInt(sc_cross.style.width)/2 : document.body.scrollLeft+document.body.clientWidth/2-parseInt(sc_cross.style.width)/2
    sc_cross.style.top=ns6?parseInt(window.pageYOffset)+parseInt(window.innerHeight)/2-sc_cross.offsetHeight/2 : document.body.scrollTop+document.body.clientHeight/2-sc_cross.offsetHeight/2
    sc_cross.style.visibility="visible"
    xtd++
    }
    else{
    window.location=targetdestination
    return
    }
    setTimeout("displaysplash()",intervals)
    }
    
    function displaysplash_ns(){
    if (xtd<splashmessage.length){
    sc_ns.visibility="hide"
    sc_ns.document.write('<b>'+openingtags+splashmessage[xtd]+closingtags+'</b>')
    sc_ns.document.close()
    
    sc_ns.left=pageXOffset+window.innerWidth/2-sc_ns.document.width/2
    sc_ns.top=pageYOffset+window.innerHeight/2-sc_ns.document.height/2
    
    sc_ns.visibility="show"
    xtd++
    }
    else{
    window.location=targetdestination
    return
    }
    setTimeout("displaysplash_ns()",intervals)
    }
    
    
    
    function positionsplashcontainer(){
    if (ie4||ns6){
    sc_cross=ns6?document.getElementById("splashcontainer"):document.all.splashcontainer
    displaysplash()
    }
    else if (ns4){
    sc_ns=document.splashcontainerns
    sc_ns.visibility="show"
    displaysplash_ns()
    }
    else
    window.location=targetdestination
    }
    window.onload=positionsplashcontainer
    
    </script>
    
    <!--Set href in below link to the URL of the target destination-->
    
    <div align="right">
    <table border="0" width="200" height="100%" cellspacing="0" cellpadding="0">
    <td width="100%" valign="bottom" align="right">
    [ <a href="http://www.dynamicdrive.com/dynamicindex3/dynamicsplash.htm"><font color="#FFFFFF">Skip Intro</font></a> ]
    </td>
    </table>
    </div>
    
    
    </body>
    </html>

  9. #9
    Join Date
    Apr 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    THANKS VERY MUCH it worked fine.

  10. #10
    Join Date
    Apr 2005
    Posts
    17
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default how do I get this to work with IE 6? 5?

    can I get this script to work on versions of IE above IE 4?

    I have IE 6 and it just forwards to the redirect URL

    Anything that can be done?

    Or... is there a similar script that works on all newer versions?

    Thanks for your help

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
  •