Hi Raj
Feel free to use it - all I ask is that you leave a comment reference to me and my homepage on the include of my script and RoyW on the include of his one, and let me know the URL of your page so I can see it in action!
You need to download these two files and upload them to your site...
The following link has a few routines which are totally brilliant for cross-browser layer manipulation - throw away your own ones and use his!
www.javascript-fx.com
Stephen www.daisy.fslife.co.uk
I have one page which has a back-dated expiry - prompting the browser to reload from the server each time
it's accessed.
From that page I have a mechanism to determine which other pages have changed since the user last visited
them.
I then generate links for each page, and where the page is...
Thought some of you might be interested in this.
I've not seen any mention of OO Javascript on this forum - yet it's simple and flaxible.
Here's a little example. Image preloading is very simple - just load the blighters into an array and Robert is your Mother's Brother...
Yet - how many...
You don't need to qualify "alert" with "window."
You should close the <body> with </body>.
I think between us we've covered just about every line...
Don't get disheartened - you're still on the easy stuff!
Stephen http://www.daisy.fslife.co.uk
Have you got a </FORM> ? NS is very fussy about tag closure.
It's be easier for us if you upload the page and put a link to it for us to see the whole thing in action.
Stephen http://www.daisy.fslife.co.uk
(though my index page (only) absolutely slaughters netscape at the moment and I just...
Here you go - this is a fantastic script which is cross-browser compatible and degrades gracefully on older broswers:
http://www.codelifter.com/main/javascript/amazingframelesspopup1.html
Stephen http://www.daisy.fslife.co.uk
That is very, very sneaky....and I like it! I think I'll have a play - as I've been looking for another way to pass simple data.
Cookies are great for complex stuff.
S
This is what you do
when you open the window, assign it to a variable. You then have full access to the window through the variable:
<SCRIPT>
function myopen(url){
mywind=window.open(url,'stephens_window');
mywind.focus();
}
</SCRIPT>
Stephen http://www.daisy.fslife.co.uk
I don't know of any other way of doing it without using cookies - but then if you have some good cookie code they're not too much of a problem to use.
I've got some useful code in:
www.daisy.fslife.co.uk/js/global.js - I keep track of which pages have been accessed, and when the last visit was...
Sounds like you need to read up the way NS works:
IE has a very 'flat' structure - you can reference any element however nested it is within other elements. Imagine a directory structure where you can reference any file by name without specifying a path!
Netscape has a 'tree' structure. Using...
Don't forget that Netscape is very picky about closing tags - so for every <TD> you need a </TD>...
Stephen http://www.daisy.fslife.co.uk
<body>
<table width="100%" height="100%">
<tr>
<td valign="middle" align="center">
<table...
Hi!
This is about as close as you're going to get...in IE there's nothing - even a close! Netscape's not going to let you play that game as it's rather more concerned about security than IE.
http://www.codelifter.com/main/javascript/amazingframelesspopup1.html
I hear that Netscape's on the...
This is getting frustrating - netscape used to be happy with the CLASS=m, but now it's ignoring my styles (whatever I do) on my drop down menus:
www.daisy.fslife.co.uk
IE is quite happy - though in IE the link's wihin a table while in Netscape it's just directly in the layer (so that I can do...
Here's how to do it with a normal window:
http://www.codelifter.com/main/javascript/amazingframelesspopup1.html
I'm not sure about dialog boxes though - I've not seen it done
One way is to use the layer background colour in Netscape rather than a table - see my menu on:
www.daisy.fslife.co.uk
(look for the code immediately after "hovercolor")
If you can see why it ignores the CLASS=m on the anchor in Netscape I'd appreciate it...it used to be perfect...
Even easier in NS - you've got .x and .y. To sum up:
if(document.all)
{
var myx = yourelement.offsetLeft;
var myy = yourelement.offsetTop;
}
else
{
var myx = yourelement.x;
var myy = yourelement.y;
}
If you find an easy way to locate yourself within a table I'd like to know -...
Hi!
This is a very annoying thing for the user if they really want to leave your window - but this script below works for me. Just don't try to get it running from both Netscape and IE windows like I just did as you get focus flipping from one to the other...flicker flicker...scream!
<HTML>...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.