Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2013-12-02
8
Medium Priority
?
284 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
Monthly Recap

May was a big month for new releases from Linux Academy! Take a look at what our team built recently in our blog. You can access the newest releases from our blog.

 

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 2000 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

TCP/IP Network Protocol Cheat Sheet

TCP/IP is a set of network protocols which is best known for connecting the machines that make up the Internet. The truth is that TCP/IP is one of the oldest network protocols and its survival is mainly based on its simplicity and universality.

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…
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.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

722 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