Trevor Lawson

Navigation

Skip navigation.

Search

Site navigation

Email conversation

FromTrevor Lawson
ToMe
SubjectAdding delay to Javascript Draggable Layer
Date28 April 2009 08:33
Good morning to you-

I would covet your help with what I imagine for you is quite an easy fix.

I have added a 'popup' so to speak to my own site to get peoples attention.
Everything works well with the exception I would like a bit of a delay.   I
have the Javascript Draggable Layer visible by default but would like it be
visible only after a 3 or 4 second delay after the page loads.  Here is the
site page in question:  [URL]

Thank you in advance for any help you can offer.

Trevor Lawson
FromMe
ToTrevor Lawson
SubjectRe: Adding delay to Javascript Draggable Layer
Date3 May 2009 08:44
Trevor,

> Everything works well with the exception I would like a bit of a delay.

You seem to have accomplished this already - I can see a delay of two
seconds being used on your page source.

> I have the Javascript Draggable Layer visible by default but would like
> it be visible only after a 3 or 4 second delay after the page loads.

This is a script from someone else's site (and a fairly poor one relying
on inaccurate sniffing). I do not support other people's scripts. You
should always contact them for help with their own scripts. See my
contact page for more information:
http://www.howtocreate.co.uk/sendEmail.php#whatdetails

However, a JavaScript timer is the usual way to add a delay:
http://www.howtocreate.co.uk/tutorials/javascript/timers
This is already being used by the code on your page.


Mark 'Tarquin' Wilton-Jones - author of http://www.howtocreate.co.uk/
This site was created by Mark "Tarquin" Wilton-Jones.
Don't click this link unless you want to be banned from our site.