PDA

View Full Version : floating menu



mehmoodriaz
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

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

mehmoodriaz
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

http://i62.servimg.com/u/f62/13/22/20/45/screen11.jpg

Snookerman
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)

mehmoodriaz
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

Snookerman
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..

mehmoodriaz
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

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

Good luck!

mehmoodriaz
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

http://i62.servimg.com/u/f62/13/22/20/45/error10.jpg

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

mehmoodriaz
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>
<TR>
<TD align="left"><A HREF=""><img src="" border="0" alt="" /></A>
<A HREF=""><img src="" border="0" alt="" /></A>
</TD>
</TR>
</TABLE>
</DIV>
<!-- *** 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];
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.Right=x+px;this.style.top=y+px;};
el.x = startX; el.y = startY;
return el;
}
window.stayTopRight=function()
{
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");
stayTopRight();
}
JSFX_FloatTopRight();
</script>