View Full Version : floating menu

01-21-2009, 03:09 PM
i need help about floating menu ... i saw on one of the forum that when one is browsing the forum as guest the floating message shows hello guest and when one is registered it shows the rgistered user name ... i need the same code please help

01-21-2009, 03:27 PM
On what forum did you see this? Do you have a link or a screenshot?

01-21-2009, 04:03 PM
On what forum did you see this? Do you have a link or a screenshot?

here is the screenshot of what i have seen ... it is a floating message screenshot


01-21-2009, 04:06 PM
Take a look at this one:
http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/dhtmlmodal.htm (http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/dhtmlmodal.htm)

01-21-2009, 04:53 PM
sir, i m zero for any scripting ... instead of providing links dear sir plz provide me code here .. i have a forum where even i also have uploaded the code for floating menu .... please visit here (http://www.global-kishtwar.com) and check this ... but instead of welcome to forum message on top of the floating bar should be [hello user] as shown in screenshot of my previous post .........please help

01-21-2009, 05:00 PM
Did you even look at the page?? The code is there, I don't really understand what you want..

01-21-2009, 05:05 PM
sir will u please copy the specific code and paste it here for me ... the link provided by u has many codes ........ i do not understand which script should i copy ...... please help sir

01-21-2009, 05:11 PM
Just download the file called dhtmlmodal.zip and everything you need is in there.

Good luck!

01-21-2009, 05:24 PM
sir i already download the file mentioned by u ........ the request for copying the code directly here is that whenever i open any JScript file on my system i get the error message shown below [file is not open] please advise me to solve the problem


01-21-2009, 05:33 PM
Try unpacking it. And open the .js file in an html-editor.

01-21-2009, 06:00 PM
this is the code which i have used on my forum (http://www.global-kishtwar.com) for floating menu please check it out where should the code be edited inorder to get what i want

the code is

<DIV id="divStayTopRight" STYLE="position:absolute;Right:10;top:200;width:100;">
<TABLE BORDER="2" WIDTH="70" BGCOLOR="#000000">
<TR><TD align="center"><FONT FACE="Arial" SIZE=1>Welcome to GSM FORUM KISHTWAR</FONT></TD></TR>
<TD align="left"><A HREF=""><img src="" border="0" alt="" /></A>
<A HREF=""><img src="" border="0" alt="" /></A>
<!-- *** END - the floating layer, make is as fancy as you like *** --->

<script type="text/javascript">
function JSFX_FloatTopRight()
var startX = 10, startY = 200;
var ns = (navigator.appName.indexOf("Netscape") != -1);
var d = document;
var px = document.layers ? "" : "px";
function ml(id)
var el=d.getElementById?d.getElementById(id):d.all?d.all[id]:d.layers[id];
el.x = startX; el.y = startY;
return el;
var pY = ns ? pageYOffset : document.documentElement && document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop;
var dY = (pY > startY) ? pY : startY;
ftlObj.y += (dY - ftlObj.y)/8;
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("stayTopRight()", 20);
ftlObj = ml("divStayTopRight");