TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Javascript, AJAX, E4X (http://www.talkphp.com/javascript-ajax-e4x/)
-   -   Lightbox effect on page load (http://www.talkphp.com/javascript-ajax-e4x/4497-lightbox-effect-page-load.html)

aghahamidgol 06-08-2009 08:26 AM

Lightbox effect on page load
 
hi

I want to know how can i add light box effect on default ! i mean when some one come to my site see the dark page and when they click everywhere on page light box gone.

tnx a lot and sorry for my poor english:-/

Wildhoney 06-08-2009 10:25 AM

Do you have a light-box script in place already, my friend? If you do, simply place the function for initiating the light-box in the onload attribute of the body tag.

If you're calling a function calling initLightbox then something like the following would suffice:

html4strict Code:
<body onload="initLightbox();">

I hope this helps :-) !

aghahamidgol 06-08-2009 01:11 PM

could give me an example of light box scripts? unfortunately I don't have this script.

Wildhoney 06-08-2009 01:36 PM

The following page appears to have information relating to implementing the light-box code into your script. Any questions though, do please ask :-) !

Article: http://www.webdev-tutorials.com/?p=59/


All times are GMT. The time now is 11:48 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0