Hello
I'm not a jscript person more of a vbscript and am trying to combine two functions to work for the same event. I'm sure somebody has something like this already and will probably see what I need to do instantly.
HTML Code
I'm wanting to incorperate the the window.status ='' into the popup functions so that I'm able to visually hide the urls being processed by some of my forms. The popups are very nicely done (found them on the web) and function well as a type of user help but I need to also hide the url respnose being sent back to the server to prevent users from url'ing the database.
Any help would be appreciated.
Thanks, Danzig
I'm not a jscript person more of a vbscript and am trying to combine two functions to work for the same event. I'm sure somebody has something like this already and will probably see what I need to do instantly.
HTML Code
Code:
<html>
<head>
<script language="javascript">
function showStatus(sMsg)
{
window.status = sMsg ;
return true ;
}
function initalt()
{
altback="white"
altborder="CEDEE7"
altfont="arial" // Alt-Message Font
altfontcolor="203C70"// Alt-Message Font color
altfontsize="2" // Alt-Message Font Size
altoffx=5 // Alt-Message horizontal offset from mouse-position
altoffy=15 // Alt-Message vertical offset from mouse-position
altwidth=2 // Alt-Message width, will be expanded by your message
altheight=0 // Alt-Message height, will be expanded by your message
// end of Variables
document.onmousedown = sniff
document.onmousemove = sniff
document.onmouseup = sniff
if (document.layers)
{ //NS
document.captureEvents(Event.MOUSEDOWN | Event.MOUSEMOVE | Event.MOUSEUP)
document.layers['altmessage'] = new Layer(altwidth)
document.layers['altmessage'].left = 0
document.layers['altmessage'].top = 0
document.layers['altmessage'].height = altheight
document.layers['altmessage'].bgColor = altback
document.layers['altmessage'].visibility = "hidden"
document.layers['altmessage'].borderStyle = "solid"
document.layers['altmessage'].borderColor = altborder
document.layers['altmessage'].borderWidth = 1
}
else if (document.all)
{ //IE
document.body.insertAdjacentHTML("BeforeEnd",'<DIV ID="altmessage" STYLE="z-index:200;position:absolute;width:'+altwidth+';height:'+altheight+';left:0;top:0;visibility:hidden;background:'+altback+';border-style:solid;border-width:1;border-color:'+altborder+'"></DIV>')
}
}
function sniff(e)
{
// GETS Mouseposition
if (document.layers)
{
var mousex=e.pageX; var mousey=e.pageY;document.layers['altmessage'].left = mousex+altoffx;document.layers['altmessage'].top = mousey+altoffy
}
else if (document.all)
{
var mousex=event.x; var mousey=event.y+document.body.scrollTop;altmessage.style.top=mousey+altoffy;altmessage.style.left=mousex+altoffx
}
}
function doalt(message)
{
//The main routine
content='<font face="'+altfont+'" size="'+altfontsize+'" color="'+altfontcolor+'">'+message+'</FONT>'
if (document.layers)
{
with (document.layers['altmessage'].document)
{
open()
write(content)
close()
}
document.layers['altmessage'].visibility = "show"
}
else if (document.all)
{ window.status = ''
document.all['altmessage'].innerHTML = content
document.all['altmessage'].style.visibility = "visible"
}
}
function realt()
{
if (document.layers)document.layers['altmessage'].visibility = "hidden";
else if (document.all) document.all['altmessage'].style.visibility = "hidden";
}
</script>
</head>
<BODY onload="initalt()">
<a href="[URL unfurl="true"]http://www.yoursite.html"[/URL] onmouseover="doalt('your message')" onmouseout="realt()">Link</A>
</body>
</html>
I'm wanting to incorperate the the window.status ='' into the popup functions so that I'm able to visually hide the urls being processed by some of my forms. The popups are very nicely done (found them on the web) and function well as a type of user help but I need to also hide the url respnose being sent back to the server to prevent users from url'ing the database.
Any help would be appreciated.
Thanks, Danzig