Here you go.
Andy
<html>
<head>
<title>Calculator With Check Buttons</title>
</head>
<script language='javascript'>
function compute(frm){
var total = 0;
if(frm.Price1.checked == true){total = total + Number(frm.Price1.value);}
if(frm.Price2.checked == true){total = total +...
I'm running a script on my website at http://www.coxellis.pwp.blueyonder.co.uk/astroimg/ccdimg.htm which loads thumbnails from an array into anchors. It works fine in ie but doesn't work in Firefox - anyone know why?
Cheers :)
Andy
Array:
mypicarray = new Array("M81 - Bodes...
The script checks an array of arrays for matches to the input string. There is a series of variables set for each page in the top section;-
item[c]=new Array("index.html","","DemoSite","index,main,start,home,front","Demonstration search engine data...
Go to my home page and click on the Web Authoring button. There's a link to web site, a link to the JavaScript 1.3 ref (earlier versions have most ot the functionality and greater cross browser support) and a link to the JS 1.3 guide.
My web:
http://www.coxellis.freeserve.co.uk/
Andy %-)
Firstly - are you saying this works? I can't imagine... Oh well, no doubt someone better than me will point out the error of my ways. I do tend to go for what I see as simple solutions,... If I can think of one...
Sorry - my usual approach.
If the new window's html is:
<html>
<head>...
Not sure why Netscape doesn't support it - I can't be bothered looking it up either - probably an unsupported method.
try putting the following two sections of HTML in somewhere:
<a href="javascript:turnOn('AboutUs');">About Us</a>
<a...
In answer, I should make the following point. I'm self-taught and don't know a lot of the correct jargon, or, for that matter, the answer. But,
1. opener can be any object that can call an href. Yes.
2. unless the window calling the pop-up has a name, it's only identifier is opener or...
I spent a little time at this and then realised I was being thick...%-) >:-<
Got there in the end though.
call a quick script from the href:
<a href="#" onClick="Javascript:openup()">pics and movies</a>
and make the script read:
function openup()
{...
How 'bout another onClick off the radio, after putting the input within
<a id="whatever">bit you want to loose here</a>
calling:
function hide()
{
myhtml="";
whatever.innerHTML = myhtml;
}
Anything wrong with that?
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.