russellr
Elite Level 1
[M:5000]
rCs?
Posts: 525
|
Post by russellr on Nov 15, 2010 12:05:58 GMT
ok should it hide to nothing? or a small amount? also do you want say it to remember if it should be hidden or not?
|
|
rubix
Elite Level 1
Rage[M:4750]
Posts: 670
|
Post by rubix on Nov 15, 2010 12:15:50 GMT
ok should it hide to nothing? or a small amount? also do you want say it to remember if it should be hidden or not? It should hide into a tiny portion of the bar. And what do you mean 'Remember if its hidden of not'?
|
|
russellr
Elite Level 1
[M:5000]
rCs?
Posts: 525
|
Post by russellr on Nov 15, 2010 15:46:16 GMT
Here you go Mr.N I was not going to code today but your lucky Make sure you have jQuery installed info here ( tv.vforums.co.uk/code_store/287/include-jquery ) <!-- Coded By Russell tv.vforums.co.uk --> <style type="text/css"> #pmcon{ position:absolute; top:0px; background-color:#000000; /*Edit here*/ color:#ffffff;/*Edit here*/ position: fixed; bottom: 0px; right: 0px; left: 0px; margin: 0px; padding-top: 5px;/*Edit here*/ width: 100%; /*Edit here*/ height: 35px; /*Edit here*/ z-index: 9999; -moz-opacity:.50; filter:alpha(opacity=50); opacity:.50; display:none; text-align:center; } #pmclo{ position:absolute; top:0px; background-color:#000000; /*Edit here*/ position: fixed; bottom: 0px; right: 0px; left: 0px; margin: 0px; width: 100%; /*Edit here*/ height: 5px; /*Edit here*/ z-index: 9999; -moz-opacity:.50; filter:alpha(opacity=50); opacity:.50; } </style> <div id="pmclo"></div> <div id="pmcon"></div>
<script type="text/javascript"> var vfiPB=document.getElementsByTagName("td"); if(vfiPB[2].innerHTML.match(/action=pm">(\d+)\s/i)) { var total_pms = RegExp.$1 } if(vfiPB[2].innerHTML.match(/, (\d+)\ (are|is) new./i)){ var new_pms = RegExp.$1 } if( pb_username != "Guest" ){ document.getElementById("pmcon").style.display="block"; var pmbb = "Hello "+pb_displayname+" [<a href='/index.cgi?action=viewprofile'>View Profile</a> | <a href='/index.cgi?action=modifyprofile&user="+pb_username+"'>Edit Profile</a>] [Messages <a href='/index.cgi?action=pm'>"+new_pms+"</a> New "+total_pms+" Old]"; document.getElementById("pmcon").innerHTML = pmbb; } </script> <script> $('#pmcon').mouseleave(function() { $('#pmcon').delay(800).slideUp('slow', function() { }); }); $('#pmclo').mouseenter(function() { $('#pmcon').slideDown('slow', function() { }); }); </script> i think this is what ye wants
|
|
rubix
Elite Level 1
Rage[M:4750]
Posts: 670
|
Post by rubix on Nov 15, 2010 23:55:11 GMT
Thank you
EDIT: there is no auto hide
|
|
rubix
Elite Level 1
Rage[M:4750]
Posts: 670
|
Post by rubix on Nov 16, 2010 0:14:47 GMT
FIXED!! I had a double up of the jQuery code Thank you mate
|
|