logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > Javascript and JS frameworks
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 11-15-2011, 06:32 PM   #1
johnMoss
johnMoss's Avatar
 
Join Date: Dec 2010
Location: Dallas
Posts: 867
Default Momentary Landing Page

I don't seem to have the nomenclature down for what I'm after, as I'm not getting usable SE results looking for this.
Bottom line, does anyone have a script or resource for a momentary landing page? What I'm wanting to do is display a static image on a landing page & then redirect to the home page after a few seconds...
__________________
LinkedIn: jM
johnMoss is offline   Reply With Quote
Old 11-15-2011, 08:02 PM   #2
gentleone
gentleone's Avatar
 
Join Date: Nov 2009
Location: Rhodes, Greece
Posts: 2,837
Default

The easiest way is to use the meta refresh tag in the head, something like this:
HTML Code:
<meta http-equiv="refresh" content="2 url=http://www.domain.com/">
So after 2 seconds the page will do a refresh and goes to the home page from domain.com.
There are also ways to do it with htaccess or with a PHP header.
__________________
www.gentlemedia.nl
gentleone is offline   Reply With Quote
Old 11-15-2011, 08:04 PM   #3
johnMoss
johnMoss's Avatar
 
Join Date: Dec 2010
Location: Dallas
Posts: 867
Default

perfect. thanx
__________________
LinkedIn: jM
johnMoss is offline   Reply With Quote
Old 11-16-2011, 02:46 AM   #4
DWcourse
DWcourse's Avatar
 
Join Date: Apr 2009
Posts: 3,276
Default

I bet you could find a nice jQuery script that would float an image over the page and then fade out gradually.
__________________
If my answer helped, check out DWcourse.com for Dreamweaver tips and tutorials.
DWcourse is offline   Reply With Quote
Old 11-16-2011, 04:09 AM   #5
domedia
Administrator
domedia's Avatar
 
Join Date: Dec 2003
Posts: 9,730
Default

Yes, the whole meta refresh thing is kinda weird. The user has no forewarning about what is going to happen, and it often creates more questions than answers in my experience. It still seem to be one of those client requests that requires client education to get past.

John, I hope you have a good reason to keep the visitor hostage for those few seconds
domedia is offline   Reply With Quote
Old 11-16-2011, 06:49 AM   #6
gentleone
gentleone's Avatar
 
Join Date: Nov 2009
Location: Rhodes, Greece
Posts: 2,837
Default

Yep, the boys are right. The meta refresh is not the most user friendly & elegant way to do this and abrupt redirecting can be bothersome for your visitors, but if you have to use it, just make sure that you let the them know with a message on the page that it will be redirected after 2 seconds (this example).
__________________
www.gentlemedia.nl
gentleone is offline   Reply With Quote
Old 11-16-2011, 03:34 PM   #7
johnMoss
johnMoss's Avatar
 
Join Date: Dec 2010
Location: Dallas
Posts: 867
Default

Agreed, the meta is too direct. I'll go dig up a js & see how it plays out. What's going on here is landing page soundbite & then a redirect.
__________________
LinkedIn: jM
johnMoss is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:08 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com