Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 30th, 2006, 3:01 PM   #1
ASHORY
Programmer
 
ASHORY's Avatar
 
Join Date: Dec 2004
Location: Egypt
Posts: 30
Rep Power: 0 ASHORY is on a distinguished road
Send a message via ICQ to ASHORY Send a message via MSN to ASHORY Send a message via Yahoo to ASHORY
pop up page ..!!!!!

while my brother was browsing some thing attracted me .

Please enter this site and see the table , coz when you clicked on the name "tallium" it will open a popup or some thing i dont know its name so i need ti know how can i make that

http://www.imperialmu.com/index.php?op=rankings

Thanks ..
__________________
"^Ahmed.SHOukRY^"
http://www.ashory.741.com
ASHORY is offline   Reply With Quote
Old Apr 30th, 2006, 3:05 PM   #2
JavaMan
Newbie
 
Join Date: Oct 2005
Posts: 29
Rep Power: 0 JavaMan is on a distinguished road
I think that site was made from flash.
__________________
Conflict Online
JavaMan is offline   Reply With Quote
Old Apr 30th, 2006, 3:24 PM   #3
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,869
Rep Power: 5 Sane will become famous soon enough
Send a message via MSN to Sane
It doesn't have to be? Click any of the poster's names on the side of this forum. It's essentially the exact same thing.

Here's the javascript for hiding and showing an object:

/* GET AN OBJECT */

var objects = new Array();
var type = 0;
if (document.getElementById)
{
    type = 1;
}
else if (document.all)
{
    type = 2;
}
else if (document.layers)
{
    type = 3;
}
function get_object(idname)
{
    if (typeof(objects[idname]) == "undefined")
    {
        if (type == 1)
        {
            objects[idname] = document.getElementById(idname);
        }
        else if (type == 2)
        {
            objects[idname] = document.all[idname];
        }
        else if (type == 3)
        {
            objects[idname] = document.layers[idname];
        }
    }
    return objects[idname];
}

/* HIDE/SHOW AN OBJECT */

function hide(contID)
{
    dynobj = get_object(contID)

    if (dynobj.style.display == "")
    {
        dynobj.style.display = "none";
    }
    else
    {
        dynobj.style.display = "";
    }

    return false;
}

Then you can use that by creating an object:

<div id="my_object">This is some content that can toggle hidden/shown</div>

Then finally a link to toggle the object:

<a href="#" onclick="hide('my_object')">Hide/Show</a>

If you want the <div> to overlap what's beneath it, you have to do some position: fixed; attribute or something. Do a little research. I've never tried it.
Sane is offline   Reply With Quote
Old Apr 30th, 2006, 4:05 PM   #4
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Why are you browser-sniffing for 'getElementById'?? Really, really, really old model?
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:03 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC