iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Share Thread: & Tags

Share Thread:

Tags
activate, litebox, load, onpage

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-11-2009, 01:35 PM
morestar's Avatar
WebProWorld Veteran
WebProWorld MVP
 
Join Date: Jun 2007
Location: Burlington, Ontario (Toronto)
Posts: 999
morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5
Default LiteBox Activation When Page Loads

So I'm trying to make a registration form for a client who wants the form to open up in a litebox - for those who don't know what the litebox is, it's usually used in image galleries - when a user clicks on one of the images, it pops up with 'next' and 'previous' buttons and allows you to browse through all the pictures in the gallery...

the site that let's you download the script and see an example is here:
Lightbox 2

BUT! I have seen a few sites that use that functionality for other purposes - namely the one I am trying to achieve today - where when a user gets to a page, the page blackens out (dims to black), you can still see the page but a litebox opens with content in it.

I think I can figure out how to get the content rather than an image to display in the litebox but I need it to activate when the page loads...if anyone knows of this hack let me know.

Thanks everyone...
__________________
Join free dating sites and meet single people without paying a penny.
Reply With Quote
  #2 (permalink)  
Old 11-11-2009, 01:39 PM
morestar's Avatar
WebProWorld Veteran
WebProWorld MVP
 
Join Date: Jun 2007
Location: Burlington, Ontario (Toronto)
Posts: 999
morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5
Default Re: LiteBox Activation When Page Loads

I think I may have just found the solution at: ThickBox 3.1

I shall return and let you know...
__________________
Join free dating sites and meet single people without paying a penny.
Reply With Quote
  #3 (permalink)  
Old 11-11-2009, 03:21 PM
morestar's Avatar
WebProWorld Veteran
WebProWorld MVP
 
Join Date: Jun 2007
Location: Burlington, Ontario (Toronto)
Posts: 999
morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5
Default Re: LiteBox Activation When Page Loads

OK ThickBox isn't working as I planned and hoped...still searching...
__________________
Join free dating sites and meet single people without paying a penny.
Reply With Quote
  #4 (permalink)  
Old 11-11-2009, 04:59 PM
WebProWorld Member
 
Join Date: Feb 2007
Posts: 70
epep RepRank 0
Default Re: LiteBox Activation When Page Loads

Looks like they no longer support ThickBox, did you check out the list of alternatives at the top of the page?

http://colorpowered.com/colorbox/
http://jqueryui.com/demos/dialog/
http://fancybox.net/
http://swip.codylindley.com/DOMWindowDemo.html
http://www.shadowbox-js.com/index.html
Reply With Quote
  #5 (permalink)  
Old 11-11-2009, 05:00 PM
morestar's Avatar
WebProWorld Veteran
WebProWorld MVP
 
Join Date: Jun 2007
Location: Burlington, Ontario (Toronto)
Posts: 999
morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5
Default Re: LiteBox Activation When Page Loads

So now I narrowed down my search and found ShadowBox which seems to be the same type of script as LiteBox but allows you to display content within the LiteBox (ShadowBox) and load the content when the page loads...

My client wants the submission form to load in the ShadowBox when the page loads...a serious 'Call to Action'...

So now, I was able to nicely implement this script but my last problem is as follows, maybe someone can help me:

The page that has the ShadowBox (a form of LiteBox) script installed on it, works fine but it has a flash header. When the page loads and the ShadowBox script executes, everything is nice and beautiful but the Flash header disappears until the ShadowBox is closed...

I'm searching and searching to no avail...

I need the flash to continue displaying behind the ShadowBox, but obviously in the same way the other HTML elements are displaying...
__________________
Join free dating sites and meet single people without paying a penny.
Reply With Quote
  #6 (permalink)  
Old 11-11-2009, 05:01 PM
morestar's Avatar
WebProWorld Veteran
WebProWorld MVP
 
Join Date: Jun 2007
Location: Burlington, Ontario (Toronto)
Posts: 999
morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5
Default Re: LiteBox Activation When Page Loads

Thank you epep...
__________________
Join free dating sites and meet single people without paying a penny.
Reply With Quote
  #7 (permalink)  
Old 11-11-2009, 05:03 PM
WebProWorld Member
 
Join Date: Feb 2007
Posts: 70
epep RepRank 0
Default Re: LiteBox Activation When Page Loads

It may be a question best asked in the ShadowBox Forum (Shadowbox.js Media Viewer Forum). But you may be able to play around with the z-index of the flash object to get it to display properly, just a stab in the dark though.
Reply With Quote
  #8 (permalink)  
Old 11-11-2009, 05:08 PM
morestar's Avatar
WebProWorld Veteran
WebProWorld MVP
 
Join Date: Jun 2007
Location: Burlington, Ontario (Toronto)
Posts: 999
morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5
Default Re: LiteBox Activation When Page Loads

ya I'm at the forum but z-index might be an option, my only concern is that it will display over the 'fade-into-black'...

there was a fix that was posted at the forum there but on my end it didn't fade out the flash - only the rest of the content was...

It mentioned taking out this line in the shadowbox.js file:

Code:
el.style.visibility = 'hidden';
I'm still trying...thanks for your help epep...
__________________
Join free dating sites and meet single people without paying a penny.
Reply With Quote
  #9 (permalink)  
Old 11-11-2009, 05:16 PM
WebProWorld New Member
 
Join Date: Jul 2003
Location: London, UK
Posts: 2
marc_in_london RepRank 0
Default Re: LiteBox Activation When Page Loads

if you go to willmaster . com you'll find what you need if you search for

Content Box (Lightbox) Overlay On Shaded Web Page
Reply With Quote
  #10 (permalink)  
Old 11-11-2009, 05:19 PM
morestar's Avatar
WebProWorld Veteran
WebProWorld MVP
 
Join Date: Jun 2007
Location: Burlington, Ontario (Toronto)
Posts: 999
morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5
Default Re: LiteBox Activation When Page Loads

Thanks, I'll check that out, I don't know if it works for ShadowBox but I might be able to snag a snippet and throw it into the .js file I'm working with now...
__________________
Join free dating sites and meet single people without paying a penny.
Reply With Quote
  #11 (permalink)  
Old 11-11-2009, 06:33 PM
DaveSawers's Avatar
WebProWorld Veteran
 
Join Date: Dec 2006
Location: Calgary, Alberta, Canada
Posts: 492
DaveSawers RepRank 3DaveSawers RepRank 3
Default Re: LiteBox Activation When Page Loads

Another option you might want to consider is to use this: dhtmlxWindows – Feature rich, skinnable dialog windows for web applications

This allows you to place dialog windows over the main browser window, greying out the browser window behind (if the window is set modal). The dialog box can contain any HTML so can easily accommodate your login form, etc.

It handles all major browsers, is skinnable and it's free to use.
__________________
Dynamic Software Development
www.activeminds.ca
Reply With Quote
  #12 (permalink)  
Old 11-11-2009, 09:03 PM
morestar's Avatar
WebProWorld Veteran
WebProWorld MVP
 
Join Date: Jun 2007
Location: Burlington, Ontario (Toronto)
Posts: 999
morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5
Default Re: LiteBox Activation When Page Loads

Well thank you Dave, I had a look at the link and it's not what my client wants but I'm bookmarking that link for future use...thanks again man...

I think I may have found the flash fix...I'm not sure why the fix isn't so easy to find. There are so many forums and blog comments asking for help with the flash issue and ShadowBox...you'd think by now someone would have the real fix for it...

Tomorrow is another day...
__________________
Join free dating sites and meet single people without paying a penny.
Reply With Quote
  #13 (permalink)  
Old 11-12-2009, 03:29 PM
morestar's Avatar
WebProWorld Veteran
WebProWorld MVP
 
Join Date: Jun 2007
Location: Burlington, Ontario (Toronto)
Posts: 999
morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5morestar RepRank 5
Default Re: LiteBox Activation When Page Loads

ok that was brutal...but I got it to finally work.

For ShadowBox, there is a javascript file named shadowbox.js.

In there, on line 1986, there is a line of code that reads:

Code:
el.style.visibility = 'hidden';
I changed it to the following

Code:
el.style.visibility = 'visible';
That allowed any flash objects on the page to still display when the ShadowBox overlay is activated...But at this point the flash objects wouldn't display behind the ShadowBox overlay but instead right on top and over it.

So I added...

Code:
wmode="transparent"
...to the flash embed code AND placed the embed code in a div with a z-index:0 attribute.

In the end that finally worked!

The end result is haltonautolease.com/test.htm


I feel sorry for the people who are trying to find a fix for this flash disappearing issue with ShadowBox or Litebox because there are tons of questions and very few answers - I had to look at many answers and put together my own.



Thank you everyone for your help !



P.S. I do very little SEO for this site just in case you're wondering...although the little I did do (on-page, a few classifieds links) is working pretty good for them...locally...
__________________
Join free dating sites and meet single people without paying a penny.

Last edited by morestar; 11-12-2009 at 03:35 PM.
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
What happened to voice activation? cheamus The Castle Breakroom (General: Any Topic) 3 02-18-2006 07:24 AM
Commission Junction Slow page loads and Free Datafeed TrafficProducer Affiliate Marketing Discussion Forum 3 09-28-2005 01:55 PM
Google results changing after page loads jpavery Google Discussion Forum 1 02-20-2004 12:27 AM
New Adobe Activation Annoyance grease Graphics & Design Discussion Forum 5 02-05-2004 04:45 PM


All times are GMT -4. The time now is 09:38 PM.



Search Engine Optimization by vBSEO 3.3.0