www.webdeveloper.com
Results 1 to 4 of 4

Thread: Message Slideshow Question

  1. #1
    Join Date
    Apr 2005
    Posts
    3

    Message Slideshow Question


    Dear All

    I know very little about html and java. I have managed to build my site but I am not that advanced. Hope someone can help me.

    I have my index and subsequent web pages up on server. It is fine - how I want it, with music and all.

    But now I have decided that I am being asked too many questions about my site and I want to put a Message Slideshow up before my index page opens and then have my index page open as it is now.

    Problem is, I don't want to rename all of my pages - it would take forever linking to another page, rather than my present index page.

    I got a script of this site - called 'Slideshow Message Script' - is it great. It works fine if you put it at the top of a page and link to another - only trouble is it does not work if you put it in the index page and link to same index page - naturally. It just keeps playing the Slideshow Message Script over and over again. It won't open my index page in another window. It does it on my computer because it is linking from my computer to the index page on my server - I understand this.

    So, how can I put this message at the beginning of my present index page, have it play, and then have it follow on to the rest of my index page as it is at the moment.

    This is the script:



    <SCRIPT LANGUAGE="JavaScript">

    <!-- Begin
    var background = "black";
    var text = "white";
    var URL = "http://www.yoursite.com/next-page.html";
    var speed = 4000; // time in milliseconds (4000 = 4 secs)
    var msgcount = 5;

    var i = 1;
    var blank = " ";

    function StringArray (n) {
    this.length = n;
    for (var x = 1; x <= n; x++) {
    this[x] = ' ';
    }
    }

    message = new StringArray(msgcount);
    message[1] = "Check out this JavaScript Slideshow!!";
    message[2] = "Yet another cool effect that...";
    message[3] = "you can easily add to your web pages.";
    message[4] = "Why don't you put it on your site?";
    message[5] = "Don't forget, there are still<br>lots more scripts to check out!";

    function Slide() {
    slidepage = '<body bgcolor='+background+'>'
    + '<center><table border=0 '
    + 'height=100%><tr><td><center><b><font '
    + 'color='+text+' size=6>'+message[i]+'</font></b>'
    + '</center></td></tr></table></center></body>';

    if (i == message.length + 1) parent.location = URL;

    if (i < message.length + 1) {
    frames['slideshow'].location = "javascriptparent.slidepage";
    i++;
    setTimeout("Slide()",speed);
    }
    }
    // End -->
    </script>

    <!-- Script Size: 1.68 KB -->


    Can you help this greenhorn?

  2. #2
    Join Date
    Dec 2002
    Location
    Calgary, Canada
    Posts
    6,123
    wong forum, should be posted in JavaScript forum.
    Its prety easy solution, just hide the slide show and show the rest of the page. You will get an answer in JavaScript forums in no time.
    Cheers

    Khalid

    Message Posting Guidelines In These Forums, Please read these before posting any question.
    Web site: webapplikations.com
    Web Resources Page:Web Resources

  3. #3
    Join Date
    Apr 2005
    Posts
    3

    Sorry I was in wrong forum

    Thank you khalid
    You can tell how much I know if I was even in the wrong forum
    You say its pretty easy. Unfortunately, it's difficult to me. I must be stupid.

  4. #4
    Join Date
    Dec 2002
    Location
    Calgary, Canada
    Posts
    6,123
    nope thats not what I meant, what I meant was that its fairly simple for some one with experience to answer it. Don't feel bad, we all started to crawl first then we walked..:-)
    Cheers

    Khalid

    Message Posting Guidelines In These Forums, Please read these before posting any question.
    Web site: webapplikations.com
    Web Resources Page:Web Resources

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles