greetings, fellow internet!

welcome to digitalgangster.com, the coolest community for people who hack the gibson and make bajillions of dollars off of online marketing. this version of the forum is in view only mode for archival purposes. the new forum can be found here.

ASGPHE,
ytcracker, original digital gangster
follow me on twitter
fan me on facebook
Results 1 to 13 of 13

Thread: want a free title rape/fix?

  1. #1

    Default want a free title rape/fix?

    either jump into irc and join #css or just ask someone who knows or just answer if you know css but i don't think we have many here this deep

    i have a div thats position: fixed; but it overlays content on the page. i need to click through the div to click a link or whatever thats behind the fixed div. CANT DOING IT WONT CLICK THROUGH EVEN Z-INDEX

    i can move it back out of the way but it looks cooler ontop

  2. #2

    Default

    Quote Originally Posted by stang View Post
    either jump into irc and join #css or just ask someone who knows or just answer if you know css but i don't think we have many here this deep

    i have a div thats position: fixed; but it overlays content on the page. i need to click through the div to click a link or whatever thats behind the fixed div. CANT DOING IT WONT CLICK THROUGH EVEN Z-INDEX

    i can move it back out of the way but it looks cooler ontop
    lol
    the game belongs to me.

  3. #3
    My only fear is the unknown. david blaine's Avatar
    Join Date
    May 2005
    Posts
    8,370

    Default

    Just use some javascript on the z-index'd div, like so
    Code:
    <div id="positiondiv" onclick="doit(this.id)">
    stuff
    </div>
    Code:
    <script>
    function doit(elementId){
    
    var x = document.getElementById(elementId).style;
    
    if (x.position == 'fixed'){
    x.position = 'absolute'; //you can even do relative
    window.setTimeout("x.position = '" + "fixed" + "'", 1000);
    }
    else{
    x.position = 'fixed';
    }
    
    }
    </script>
    Last edited by david blaine; 07-04-2007 at 05:14 PM.

  4. #4

    Default

    i sitll can't click through the element

  5. #5

    Default

    i altered the nav to slide out when hovered anyway, so it moves out of the way on its own

  6. #6
    My only fear is the unknown. david blaine's Avatar
    Join Date
    May 2005
    Posts
    8,370

    Default

    I just can't seem to understand why you're using { position: fixed; }, just do it differently :]
    use absolute, then write the position for left and top.

  7. #7
    son's Avatar
    Join Date
    Feb 2005
    Location
    Internet
    Posts
    20,940

    Default

    yes mx

  8. #8

    Default

    Is there a way to position:absolute other than actually using "position:absolute" ???

  9. #9

  10. #10
    8 5 7 O W N S N I G G E R S ! vazel's Avatar
    Join Date
    May 2007
    Location
    Long Beach, California
    Posts
    9,988

    Default

    Quote Originally Posted by IamtheGREATEST View Post
    Good answer.

  11. #11

    Default

    Quote Originally Posted by MX View Post
    I just can't seem to understand why you're using { position: fixed; }, just do it differently :]
    use absolute, then write the position for left and top.
    because then the point of it staying on the page while you scroll is lost.

    i might do an absolute then use javascript to tween it.

  12. #12
    Nore's Avatar
    Join Date
    Feb 2005
    Location
    Abu Dhabi
    Posts
    26,596

    Default

    just do

    if philip = nis then goto for_more_info
    high

  13. #13

    Default

    this isn't your sexual fantasy of visual basic nore this is serious biz

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •