randomsite
hello please log in or register <form action="www.pagespk/login.forum" method="post"><table cellspacing="1" cellpadding="3" border="0"><tr><td width="45%" align="right"> Username:</td><td><input type="text" name="username" size="25" maxlength="40" /></td></tr><tr><td align="right">Password:</td><td><input type="password" name="password" size="25" maxlength="32" /></td></tr><tr align="center"><td colspan="2">Log me on automatically each visit: <input type="checkbox" name="autologin" checked="true" /></td></tr><tr align="center"><td colspan="2"><input type="submit" class="mainoption" name="login" value="Log in" /></td></tr></table></form>

randomsite

style>body {cursor: url (http://cur.cursors-4u.net/toons/images8/too754.gif);} a {cursor: url (http://cur.cursors-4u.net/toons/images5/too426.gif);}
 
HomePortalCalendarGalleryFAQSearchMemberlistUsergroupsRegisterLog inRS arcade
Home
Portal
Members
Groups
Navigation Bar
Text HereOther Text
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
translate this page

Search
 
 

Display results as :
 
Rechercher Advanced Search
Top posters
Mystic_gohan (75)
 
Mystic_gotenks (20)
 
The Legendary Daxterdude (17)
 
Fred100 (3)
 
Latest topics
» .....................
Tue Nov 03, 2009 6:55 pm by Mystic_gohan

» annnnnnnnnnnnnnn test
Mon Sep 28, 2009 12:16 pm by Mystic_gohan

» test...
Sat Sep 26, 2009 11:46 pm by Mystic_gohan

» disabling right click
Thu Sep 24, 2009 4:27 pm by Mystic_gohan

» Reputation Testing???
Mon Sep 21, 2009 7:10 pm by Fred100

» highscore for games
Wed Sep 16, 2009 7:25 pm by Mystic_gohan

» adding a direct chatbox
Fri Sep 11, 2009 9:17 am by Mystic_gohan

» Html hump buttons [written by ROno]
Thu Sep 10, 2009 7:02 pm by Mystic_gohan

» games for your forum
Thu Sep 10, 2009 6:49 pm by Mystic_gohan

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
Forum
Affiliates
free forum
 


time
clock1

 

 adding a floating menu

View previous topic View next topic Go down 
Author Message
Mystic_gohan
Founder
Founder


Posts : 75
RS points : 14591
your rating by users : 1
Join date : 2009-08-21

PostSubject: adding a floating menu   Thu Sep 10, 2009 5:58 pm


if (!document.layers)
document.write('
')















/*
Floating Menu script- Roy Whittle (http://www.javascript-fx.com/)
script featured on/available at http://www.dynamicdrive.com/
This notice must stay intact for use
*/

//Enter "frombottom" or "fromtop"
var verticalpos="frombottom"

if (!document.layers)
document.write('
')

function JSFX_FloatTopDiv()
{
var startX = 3,
startY = 150;
var ns = (navigator.appName.indexOf("Netscape") != -1);
var d = document;
function ml(id)
{
var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.left=x;this.style.top=y;};
el.x = startX;
if (verticalpos=="fromtop")
el.y = startY;
else{
el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
el.y -= startY;
}
return el;
}
window.stayTopLeft=function()
{
if (verticalpos=="fromtop"){
var pY = ns ? pageYOffset : document.body.scrollTop;
ftlObj.y += (pY + startY - ftlObj.y)/8;
}
else{
var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
ftlObj.y += (pY - startY - ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("stayTopLeft()", 10);
}
ftlObj = ml("divStayTopLeft");
stayTopLeft();
}
JSFX_FloatTopDiv();


can you see down near your toolbar ? you can add images or links there . the code is
Code:
<script>
if (!document.layers)
document.write('<div id="divStayTopLeft" style="position:absolute">')
</script>

<layer id="divStayTopLeft">

<!--Source Of Your Menu-->

<div style="position:fixed; bottom:30px; right:20px; padding:5px; background:white; border:1px solid #666; color : #333; width:150px; min-height:100px;">

<a href="LINK URL HERE">TEXT</a><br />
<a href="LINK URL HERE">TEXT</a><br />
<a href="LINK URL HERE">TEXT</a><br />
<a href="LINK URL HERE">TEXT</a><br />
<a href="LINK URL HERE">TEXT</a>

</div>

<!--END OF Menu-->

</layer>


<script type="text/javascript">

/*
Floating Menu script-  Roy Whittle (http://www.javascript-fx.com/)
script featured on/available at http://www.dynamicdrive.com/
This notice must stay intact for use
*/

//Enter "frombottom" or "fromtop"
var verticalpos="frombottom"

if (!document.layers)
document.write('</div>')

function JSFX_FloatTopDiv()
{
  var startX = 3,
  startY = 150;
  var ns = (navigator.appName.indexOf("Netscape") != -1);
  var d = document;
  function ml(id)
  {
      var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
      if(d.layers)el.style=el;
      el.sP=function(x,y){this.style.left=x;this.style.top=y;};
      el.x = startX;
      if (verticalpos=="fromtop")
      el.y = startY;
      else{
      el.y = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
      el.y -= startY;
      }
      return el;
  }
  window.stayTopLeft=function()
  {
      if (verticalpos=="fromtop"){
      var pY = ns ? pageYOffset : document.body.scrollTop;
      ftlObj.y += (pY + startY - ftlObj.y)/8;
      }
      else{
      var pY = ns ? pageYOffset + innerHeight : document.body.scrollTop + document.body.clientHeight;
      ftlObj.y += (pY - startY - ftlObj.y)/8;
      }
      ftlObj.sP(ftlObj.x, ftlObj.y);
      setTimeout("stayTopLeft()", 10);
  }
  ftlObj = ml("divStayTopLeft");
  stayTopLeft();
}
JSFX_FloatTopDiv();
</script>
add this code to homepage message to it should work .
Back to top Go down
View user profile http://randomsite.darkbb.com
 

adding a floating menu

View previous topic View next topic Back to top 
Page 1 of 1
rating system

Permissions in this forum: You cannot reply to topics in this forum
randomsite :: tricks and tips -