gpchicago08
asked on
How to add a 'splash page' to our companies default.asp file
We have an announcement that we want to add before our webpage starts but we do not have a web designer to assist so I thought I would ask the e-e community.
Here is the code from our default.asp file. I am assuming that this is the file that runs when someone gets to our site. I would like to add a page with a bit of a delay prior to the final redirect to our official site. Any assistance would be great!!
website names have been removed to protect the innocent!
Here is the code from our default.asp file. I am assuming that this is the file that runs when someone gets to our site. I would like to add a page with a bit of a delay prior to the final redirect to our official site. Any assistance would be great!!
website names have been removed to protect the innocent!
Option Explicit
Response.Buffer = True
Dim HostURL
HostURL = Lcase(Request.ServerVariables("HTTP_HOST"))
Select Case HostURL ' Find which site to redirect to
Case "www.-----.com", "-----.com"
Response.Redirect("http://www.________.com/-----/moved.htm")
End Select
<<<splash screen with delay here>>>
Response.Redirect(Application("ValidURL") + "/users/folder.asp")
ASKER
It could be every time.
Here is a working example using cookies to determine when and how often to show a modal popup window on page load...demo.zip
ASKER
Looks very advanced to my poorly trained eye. Is there a simpler way?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Dimmer,
That's awesome.
One last question
Is there a way to do a showalert with an image? Or does that send me all the way to your demo CSS?
That's awesome.
One last question
Is there a way to do a showalert with an image? Or does that send me all the way to your demo CSS?
JavaScript alert() boxes support text only; not even links. If you need to style the output, add images etc, you need to make it a modal window that you show/hide using JavaScript as shown in my previous upload.
Thanks!
Do you want the splash screen to ALWAYS appear for every visit to the page, or just the first time and then maybe after a week or so, or never again?