Results 1 to 8 of 8
  1. #1
    Join Date
    Sep 2004
    Location
    Murfreesboro, TN
    Posts
    588
    Plugin Contributions
    0

    Default Timed page redirects

    I am not sure if it is a page redirection I am looking for or some other terminology but here is what I am trying to do. We are using a different mailing list program and I have setup ez-pages to explain to the customer what to do once subscribed. You may see that page at:

    http://www.swansoninc.com/index.php?main_page=page&id=1

    and to unsubscribe at: http://www.swansoninc.com/index.php?main_page=page&id=2

    Once that part of the screen has been showing for say 20 seconds I want

    http://www.swansoninc.com/index.php?main_page to load.

    I hope this makes sense

    tia...

    0be1
    "Give me one hundred preachers who fear nothing but sin and desire nothing but God, and I care not whether they be clergymen or laymen, they alone will shake the gates of Hell and set up the kingdom of Heaven upon Earth." - John Wesley

  2. #2
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: Timed page redirects

    Add this to the page you want to redirect from:

    Code:
    <script type="text/javascript">
    setTimeout( "window.location.href = 'http://www.swansoninc.com/'", 20*1000 );
    </script>

  3. #3
    Join Date
    Sep 2004
    Location
    Murfreesboro, TN
    Posts
    588
    Plugin Contributions
    0

    Default Re: Timed page redirects

    Steven300;

    Thanks for the quick reply, but that did not work. I pasted the code in my ezpage (yes, I click on the html editor <> when I pasted) and it did not do anything. Is there something special to make javascript work within ez-pages?

    Thanks...

    0be1
    "Give me one hundred preachers who fear nothing but sin and desire nothing but God, and I care not whether they be clergymen or laymen, they alone will shake the gates of Hell and set up the kingdom of Heaven upon Earth." - John Wesley

  4. #4
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: Timed page redirects

    I tested it on one of my EZ-Pages before posting and it successfully redirected to your site. It's PHP which has a problem with EZ-Pages, JavaScript is okay. Sure you waited 20 seconds? Did you copy and paste the code directly from here? You might try pasting it into something like Notepad first. Not sure what else to suggest.

  5. #5
    Join Date
    Sep 2004
    Location
    Murfreesboro, TN
    Posts
    588
    Plugin Contributions
    0

    Default Re: Timed page redirects

    I did copy and paste it into notepad first (the second time) and it still did not work. I also viewed the page source and this is what stupid html area did

    <script type="text/javascript">
    setTimeout( &quot;window.location.href = 'http://www.swansoninc.com/'&quot;, 20*1000 );
    </script></div>
    </div>
    Not sure if it matters if the script has " or &quot

    0be1
    "Give me one hundred preachers who fear nothing but sin and desire nothing but God, and I care not whether they be clergymen or laymen, they alone will shake the gates of Hell and set up the kingdom of Heaven upon Earth." - John Wesley

  6. #6
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: Timed page redirects

    Quote Originally Posted by 0be1 View Post
    Not sure if it matters if the script has " or &quot
    Yes I would think that's the problem.

  7. #7
    Join Date
    Sep 2004
    Location
    Murfreesboro, TN
    Posts
    588
    Plugin Contributions
    0

    Default Re: Timed page redirects

    Steven300;

    I had to switch to fckeditor for zc to get it to work. Now it works flawlessly!!!

    Thanks for the help

    0be1
    "Give me one hundred preachers who fear nothing but sin and desire nothing but God, and I care not whether they be clergymen or laymen, they alone will shake the gates of Hell and set up the kingdom of Heaven upon Earth." - John Wesley

  8. #8
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: Timed page redirects

    You're welcome

 

 

Similar Threads

  1. Admin page redirects to alert page
    By lakepantim in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 21 Oct 2010, 04:38 AM
  2. Page redirects
    By celticwebsolutions in forum General Questions
    Replies: 11
    Last Post: 24 May 2010, 09:31 AM
  3. Page Redirects
    By andy in forum General Questions
    Replies: 6
    Last Post: 26 Mar 2008, 09:00 PM
  4. Home redirects to Product Page
    By Moose408 in forum General Questions
    Replies: 3
    Last Post: 3 Oct 2006, 09:33 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR