Solved

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

Posted on 2013-12-02
8
261 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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

760 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

18 Experts available now in Live!

Get 1:1 Help Now