Solved

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

Posted on 2013-12-02
8
272 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
  • 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
Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

 

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
create an incrementing variable name AutoHotKey 5 117
Need to Modify a Script I found 5 108
What is assert.deepEqual? 4 55
Batch File- Finding Drive Description 11 20
In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

808 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