WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Site Design > Graphics & Design Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox 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.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-22-2007, 03:41 AM
supernatural_247 supernatural_247 is offline
WebProWorld Pro
 

Join Date: Mar 2005
Location: Los Angeles
Posts: 266
supernatural_247 RepRank 1
Default How to make a hover login box like this...

Go to www.ilike.com and click on the "Sign in" link under the logo.

The login form should expand in a nice box with a faded background. I want to create a box just like that one... where someone clicks a link, and it opens a box that overlaps the rest of the page and has a link to close it.


But the code for the text within the expanding box must be on the same page as the rest of the page's code - I found some javascript examples that call a separate page, but this won't do.


Do any of you know how this is done? Any tutorials on how to do this?


Thanks in advance!
Reply With Quote
  #2 (permalink)  
Old 05-22-2007, 05:08 AM
le_gber le_gber is offline
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Bedfordshire, UK
Posts: 340
le_gber RepRank 0
Default Re: How to make a hover login box like this...

Everything you need is on that page.

Look for the div called 'login_dialog', that's where the login forms are.

Then look at the javascripts and see how it's been done.

You have no other choice but to use javascript / dom scripting to achieve this effect to switch on and off the form overlay.

If the code is too complicated and you can't find what you want, try google search for 'css javascript hide show divs'. It should return examples/tutorials on how to do it.
Reply With Quote
  #3 (permalink)  
Old 05-23-2007, 04:45 AM
calmdesign calmdesign is offline
WebProWorld New Member
 

Join Date: Apr 2006
Posts: 17
calmdesign RepRank 0
Default Re: How to make a hover login box like this...

Have a look at these to see if they help you with what you're trying to do.

http://jquery.com/demo/thickbox/

http://particletree.com/examples/lightbox/

http://stickmanlabs.com/lightwindow/

Coris
__________________
Calm Design is a web design company
Web design Cardiff
Reply With Quote
  #4 (permalink)  
Old 05-23-2007, 07:42 AM
spooky69 spooky69 is offline
WebProWorld New Member
 

Join Date: Apr 2007
Posts: 17
spooky69 RepRank 0
Default Re: How to make a hover login box like this...

The jQuery thickbox method is very easy to use - did a similar thing on my site. Why do you say calling a different page will not do and that the text for the login box must be on the same page?

Last edited by spooky69 : 05-23-2007 at 07:44 AM.
Reply With Quote
  #5 (permalink)  
Old 05-23-2007, 09:19 PM
supernatural_247 supernatural_247 is offline
WebProWorld Pro
 

Join Date: Mar 2005
Location: Los Angeles
Posts: 266
supernatural_247 RepRank 1
Default Re: How to make a hover login box like this...

Quote:
Originally Posted by spooky69 View Post
The jQuery thickbox method is very easy to use - did a similar thing on my site. Why do you say calling a different page will not do and that the text for the login box must be on the same page?

The code for the login fields (username /password) and submit button must be on the same page as the code that processes the login. I tried putting the login form code on a separate file and then used the javascript to call the loginBox.asp page (that has the login form code). And although it logged me in, it did not refresh properly.


This jQuery Thickbox looks really cool, and I'd like to use it for the login area. However, I want to use Lightbox for the listing images, and I read in the FAQ that it will conflict. Is this true?

also, is the Compressed version of jQuery ok for the single purpose that I need it for - the login box? I'm not too familiar with javascript, and my main priority is a quick loading site.


Thanks for all the help guys!
Reply With Quote
  #6 (permalink)  
Old 05-24-2007, 01:09 AM
supernatural_247 supernatural_247 is offline
WebProWorld Pro
 

Join Date: Mar 2005
Location: Los Angeles
Posts: 266
supernatural_247 RepRank 1
Default Re: How to make a hover login box like this...

btw, I installed Thickbox for the images here:

Apartments For Rent By Agent - Listing #2435587

but I notice that if I refresh the page and I click an image as soon as I do that, it sometimes goes to the actual image link

i.e. http://www.ihomeconnect.com/images/2792_1.jpg

instead of opening the viewer.

Any ideas as to why this is happening? If it has something to do with loading of the js file, is there a way to load it before everything else and have it "stick" for the rest of the user's time on the site?
Reply With Quote
  #7 (permalink)  
Old 05-24-2007, 01:29 AM
supernatural_247 supernatural_247 is offline
WebProWorld Pro
 

Join Date: Mar 2005
Location: Los Angeles
Posts: 266
supernatural_247 RepRank 1
Default Re: How to make a hover login box like this...

ahh... for those of you using Thickbox, I found the Thickbox forum, and someone asked a similar question to which is the following solution:

<body style="display:none;" onload="javascript:document.body.style.display=''; ">


Now I don't have this problem!

I do wish to be certain in implementing this solution, so is this the best solution available?

ThickBox Forum - PLEASE REPLY ASAP LOADING PROBLEM
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum
Tags: box, hover, login



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

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
Whatever:Hover doesn't work in IE7 trancehead Graphics & Design Discussion Forum 7 05-22-2007 09:23 PM
IE Hover PARoss Web Programming Discussion Forum 10 05-18-2007 04:37 AM
How do I make a membership page for customer login & det cjhardy Web Programming Discussion Forum 1 07-04-2006 05:56 AM
CSS HOVER-IE candlese Graphics & Design Discussion Forum 3 12-10-2005 09:17 AM
CSS hover links justinw Graphics & Design Discussion Forum 9 03-20-2004 02:48 PM


Search Engine Friendly URLs by vBSEO 3.0.0