Forum Moderators: open

Message Too Old, No Replies

OnClick Question

         

ianternet

9:22 pm on Nov 27, 2007 (gmt 0)

10+ Year Member



I am setting up a new website and I want to incorporate a splash screen for a onclick. What I want is if someone clicks on a RSS feed link go to a splash screen first then go to the desired page after X amount or an exit out button

I am using some scripts, and I do not want to post the url here since it may get flagged, its from dynamic drive 2 scripts I am using to pull feeds and create the splash screen on my website

Since is an RSS feed being captured I wanted to know if there is a way to make an onclick go to the splash prior to the desired page

I hope I have explained it right - PM if any more questions

Chris_Mohr

7:33 am on Nov 28, 2007 (gmt 0)

10+ Year Member



The best way to accomplish this is to add the code to your 'splash page'.

To go to a different url after a certain number of seconds, you would add a "meta refresh" tag to the <head> section.

<meta http-equiv="refresh" content="10;url=http://desiredpageurl.com">

To add the button, the code would look something like this:

<input type="button" value="Go to desired page" onclick= "location.href='http://desiredpageurl.com'">

If for some reason you are not able to modify the splash page...the problem would be a lot more difficult.

ianternet

2:17 am on Nov 29, 2007 (gmt 0)

10+ Year Member



hmmm I can modify the splash page to my knowledge but I am using a rss parser which pulls feeds from digg or another website - so how would I call that specific url so I can create that button?

-> I kinda of adjusted the script a little with an IFrame script and the splash script within the php to call the splash - the problem is when the splash is closed - the page does not load - but when refresh the page loads?

-> if you look - sneakpeakgames.com, it has a php script using the IFrame on the feeds section of the webpage - on that I added splash page on the php script but the page behind it does not load