TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 06-08-2009, 09:26 AM   #1 (permalink)
The Visitor
 
aghahamidgol's Avatar
 
Join Date: Mar 2009
Posts: 4
Thanks: 4
aghahamidgol is on a distinguished road
Default 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
aghahamidgol is offline  
Reply With Quote
Old 06-08-2009, 11:25 AM   #2 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,214
Thanks: 90
Wildhoney is on a distinguished road
Default

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 !
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
The Following User Says Thank You to Wildhoney For This Useful Post:
aghahamidgol (06-08-2009)
Old 06-08-2009, 02:11 PM   #3 (permalink)
The Visitor
 
aghahamidgol's Avatar
 
Join Date: Mar 2009
Posts: 4
Thanks: 4
aghahamidgol is on a distinguished road
Default

could give me an example of light box scripts? unfortunately I don't have this script.
aghahamidgol is offline  
Reply With Quote
Old 06-08-2009, 02:36 PM   #4 (permalink)
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,214
Thanks: 90
Wildhoney is on a distinguished road
Default

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/
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote
The Following User Says Thank You to Wildhoney For This Useful Post:
aghahamidgol (06-08-2009)
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create a gallery class Tanax Advanced PHP Programming 22 06-24-2009 12:36 AM
file creation date copare user load date time... Peuplarchie Advanced PHP Programming 0 11-29-2008 09:48 AM
Accurate Page Load Time Garrett Absolute Beginners 3 05-05-2008 06:40 AM
Page Load Count Wildhoney Script Giveaway 1 03-25-2008 05:48 AM
Extracting page titles and placing into dropdown box. Dorza General 6 10-30-2007 12:01 AM


All times are GMT. The time now is 05:31 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design