Solved

How to add a 'splash page' to our companies default.asp file

Posted on 2013-12-02
8
283 Views
Last Modified: 2013-12-17
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!

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")

Open in new window

0
Comment
Question by:gpchicago08
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
8 Comments
 
LVL 7

Expert Comment

by:dimmergeek
ID: 39690904
I would place the splash screen on your folder.asp page since that is where the user will end up.
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?
0
 

Author Comment

by:gpchicago08
ID: 39690955
It could be every time.
0
 
LVL 7

Expert Comment

by:dimmergeek
ID: 39690972
Here is a working example using cookies to determine when and how often to show a modal popup window on page load...demo.zip
0
Major Serverless Shift

Comparison of major players like AWS, Microsoft Azure, IBM Bluemix, and Google Cloud Platform

 

Author Comment

by:gpchicago08
ID: 39690978
Looks very advanced to my poorly trained eye. Is there a simpler way?
0
 
LVL 7

Accepted Solution

by:
dimmergeek earned 500 total points
ID: 39691014
Here is the most simple of all pop-ups:

add this to the <body> tag of your page:

onload="showAlert();"

add this to the end of your page just before the closing </html> tag:

<script type="text/javascript">
     function showAlert() {
          alert("Place your desired text here.";
     }
</script>
0
 

Author Comment

by:gpchicago08
ID: 39691040
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?
0
 
LVL 7

Expert Comment

by:dimmergeek
ID: 39691052
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.
0
 
LVL 7

Expert Comment

by:dimmergeek
ID: 39725055
Thanks!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question