A1ien51 CNEUFOs

Greenhorn
+ Follow
since Nov 05, 2001
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by A1ien51 CNEUFOs

ah sorry the line should be
document.location.href;
not
document,location;
hmmmmmm, last post under this name

[This message has been edited by A1ien51 CNEUFOs (edited November 08, 2001).]
yeppers it can be done
<input type="button" name="button" value="Hi" style="color:blue;fontFamily:Arial;width:40px;">
play around with that
A1ien51
<html>
<head>
<script>
function SplitLink(){
var WL=41;
var str=document.location;
var WordSent=str.slice(WL,str.length);
document.hm.wor.value=WordSent;
}
</script>
</head>
<body onload='SplitLink()'>
<form name="hm">
<input type="text" value="loading" name="wor" size="20">
</form>
</body>
</html>

All you need to do is change the var WL to the number of characters before the part you want. In my case my link is 41 characters long then I get the value.
Hoipe this helps you out
I just wrote the codew, did not test it, hope there is not errors, if there are just hollar
A1ien51

I would just say either use a small image of one or use wingdings, since most people do have that font on their computers.
hmmm, i thought the check was /2713 hmmmmm

window.location.replace('page.html');

You have to change that to work with the frames
I think that keeps the page from going into history.
You are making me think
hehhe
you can put this code on the page that you do not want people to come back too.
<script>
var where = "thepageBEFORE.html";
if (document.referrer!=where){
window.location.replace('somepagetogoto.html');
}
</script>
see if you can play around with that
Wel you can use cookies to see if the form has already been submitted or you can use meta tags to expire the page if the user clicks on the back link.
Hope this helps
Got to love netscape...hehhee
okay lets see here, now are you writing this new pop up dynamically??
also here are some other things you can do and see if this works
print it from the other window
<input type="button" value="Print PopUp" onclick="DispWin.focus();DispWin.print()" name="PopPrinter">
you can also put the button on the popup
<input type="button" value="Print PopUp" onclick="window.print()" name="PopPrinter">
See if that works, if not, give me a link or something, and i might be able to figure it out

try these lines and see if they work
if(navigator.appName="Netscape"){
lan=navigator.language;}
else{
lan=navigator.browserLanguage;}
To my knowledge it can not be done because of security restrictions, there might be an active X control that will stop the alert, but that will only work with IE. I am not sure if there is a code for it.
Here is the code, I put the output into text boxes;

<html>
<head>
<script>
var IE = document.all?true:false
if (!IE) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = getMouseXY;
var Xtemp = 0;
var Ytemp = 0;
function getMouseXY(e) {
if (IE) {
Xtemp = event.clientX + document.body.scrollLeft;
Ytemp = event.clientY + document.body.scrollTop;
}
else {
Xtemp = e.pageX;
Ytemp = e.pageY;
}
if (Xtemp < 0){Xtemp = 0;}
if (Ytemp < 0){Ytemp = 0;}
document.ShowLoc.XMousePos.value = Xtemp;
document.ShowLoc.YMousePos.value = Ytemp;
return true
}
</script>
</body>
</head>
<body>
<form name="ShowLoc">
X Position:<input type="text" name="XMousePos" value="0" size="5"><br>
Y Position:<input type="text" name="YMousePos" value="0" size="5"><br>
</form>
hello there
here is a quick answer to the above
for the button
<input type="button" onclick="funcname()" name="hm" value="Click">
for the link, three ways
<a href="javascript nclick="funcname()">hmmmm</a>
<a href="javascript:void(0);" onclick="funcname()">hmmmm</a>
<a href="# onclick="funcname()">hmmmm</a>

hope this helps

Originally posted by William Brogden:
As I recall, you can create a new window with/without various bits in JavaScript, then show it with your jsp as the source url.
Bill


The only way to get rid of a tool bar or anyother part effectivly on browser is to open a pop up. Look at this script to help you with the pop-up code
http://www.a1ien51.8k.com/scripts/popupwingenV2.htm
Feel Free to email me with any questions
You can write the code directly to the pop up window. It is rather easy to do. All You need to do is updat the variable SayWhat with the text you want it to say. If you need help adapting this code, just hollar.
<html>
<head>
<title>PopUpScript</title>
<script>
function PopUp(){
var ScreenWidth=window.screen.width;
var ScreenHeight=window.screen.height;
var movefromedge=0;
placementx=(ScreenWidth/2)-((400)/2);
placementy=(ScreenHeight/2)-((300+50)/2);
WinPop=window.open("About:Blank","","width=400,height=300,toolbar=0,location=0,directories=0,status=0,scrollbars=0,menubar=0,resizable=0,left="+placementx+",top="+placementy+",scre enX="+placementx+",screenY="+placementy+",");
var SayWhat = "<p><font color='blue'>This is what the windows text is</font></p>";
WinPop.document.write('<html>\n<head>\n</head>\n<body>'+SayWhat+'</body></html>');
}
</script>
</head>
<body>
<a href="javascript:PopUp()">Type One</a>
</body>
</html>