Creating a POPUP box?

Help with html/xhtml, css, javascript and other related topics.

Moderator: Moderators

Creating a POPUP box?

Postby webnoobie on Sat Jul 30, 2005 1:00 am

Hey,

I was wondering ... what would be the correct code to use for a normal XHTML Link to create a small POPUP window?
webnoobie
Registered User
Registered User
 
Posts: 366
Joined: Wed Jun 08, 2005 10:38 pm
Location: My Computer

Postby Thatbitextra on Sat Jul 30, 2005 1:18 am

I believe that this article will be of use to you :)
My MODs: [NEW] Choose Who to Accept PMs From (Prevents you from receiving unwanted PMs!) | Warn of Old Topic Before Posting Reply
Style: subBlack (Now updated to phpBB 2.0.22 and 5 new color schemes!)

Please note, I do NOT offer support via PM. It's a forum, so post your question, then everyone can help.
User avatar
Thatbitextra
Moderator
Moderator
 
Posts: 1821
Joined: Thu Mar 24, 2005 1:11 pm
Location: A place where something is or could be located; a site.

Postby Phantom on Sat Jul 30, 2005 2:06 am

I've been looking for an article about that. Thanks tbe.
"Best of the best of the best, sir! With honors!" -- MIB
[ jphantom.com ]
Phantom
Registered User
Registered User
 
Posts: 245
Joined: Mon Apr 18, 2005 3:24 am

Postby DooBDee on Sat Jul 30, 2005 10:31 am

[quote user="Thatbitextra" post="45617"]I believe that this article will be of use to you :)[/quote]

Thamnks that is usefull!
DooBDee
Website Ninja
DooBDee.net
User avatar
DooBDee
Moderator
Moderator
 
Posts: 3530
Joined: Tue Mar 01, 2005 6:28 pm
Location: DooBDee.net

Postby webnoobie on Mon Aug 01, 2005 10:28 pm

Hey,

Thanks! :D Most appreciated! :D
webnoobie
Registered User
Registered User
 
Posts: 366
Joined: Wed Jun 08, 2005 10:38 pm
Location: My Computer

Postby Thatbitextra on Tue Aug 02, 2005 12:10 am

Heh, no probs, guys :)
My MODs: [NEW] Choose Who to Accept PMs From (Prevents you from receiving unwanted PMs!) | Warn of Old Topic Before Posting Reply
Style: subBlack (Now updated to phpBB 2.0.22 and 5 new color schemes!)

Please note, I do NOT offer support via PM. It's a forum, so post your question, then everyone can help.
User avatar
Thatbitextra
Moderator
Moderator
 
Posts: 1821
Joined: Thu Mar 24, 2005 1:11 pm
Location: A place where something is or could be located; a site.

Postby pentapenguin on Wed Aug 03, 2005 5:34 pm

That article is a bit compliacted. ;)
Here's what I do.
I have a link and a hidden div underneath it.
Here's a sample you can use:
Code: Select all
<style type="text/css">
.popUp
{
font-size: 13px;
background-color: #ffffcc;
margin: 0 10px;
padding: 5px;
width: 500px;
border: solid 2px black;
position: absolute;
visibility: hidden;
}
</style>
<script language="JavaScript" type="text/javascript">
<!--
function show(object)
{
var obj = document.getElementById(object);
obj.style.visibility = 'visible';
}

function hide(object)
{
var obj = document.getElementById(object);
obj.style.visibility = 'hidden';
}
//-->
</script>
.......
<a href="#" id="pop1" onmouseover="show('popUp1')" onmouseout="hide('popUp1')">move your mouse over here</a>

<div id="popUp1" class="popUp">
popup box here
</div>
User avatar
pentapenguin
Moderator
Moderator
 
Posts: 1466
Joined: Tue Sep 14, 2004 4:15 pm
Location: Georgia, USA

Postby webnoobie on Thu Aug 04, 2005 2:30 am

Penta...

I love that. Although, I that is not what I was exactly looking for. I ment a popup window. But dont you worry. I have it working. :D Thanks for the script though Penta :D
webnoobie
Registered User
Registered User
 
Posts: 366
Joined: Wed Jun 08, 2005 10:38 pm
Location: My Computer

Postby pentapenguin on Thu Aug 04, 2005 4:20 am

Whoops, I guess I should have read your post a bit more carefully. ;)
Anyways, I'm glad you like it--it's short and simple. :)
User avatar
pentapenguin
Moderator
Moderator
 
Posts: 1466
Joined: Tue Sep 14, 2004 4:15 pm
Location: Georgia, USA

Postby webnoobie on Sat Aug 06, 2005 2:41 am

Oh I like it. Im going to implement it into the new site im currently doing :)
webnoobie
Registered User
Registered User
 
Posts: 366
Joined: Wed Jun 08, 2005 10:38 pm
Location: My Computer

Postby DooBDee on Sat Aug 06, 2005 1:55 pm

I just tested this out...its a nice effect. :D

DooBDee has idea....!
DooBDee
Website Ninja
DooBDee.net
User avatar
DooBDee
Moderator
Moderator
 
Posts: 3530
Joined: Tue Mar 01, 2005 6:28 pm
Location: DooBDee.net


Return to (X)HTML Coding

Who is online

Users browsing this forum: No registered users and 1 guest

cron