Solved

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

Posted on 2013-12-02
8
267 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
 

Author Comment

by:gpchicago08
ID: 39690978
Looks very advanced to my poorly trained eye. Is there a simpler way?
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
The viewer will learn how to count occurrences of each item in an array.

895 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now