"Neredbojias" <> wrote in message
news: .net...
> On 06 Apr 2009, "Fokke Nauta" <> wrote:
>
>> Hi all,
>>
>> I have a page (main.htm) with a few links. I want each link to open
>> the same page (index2.htm) which contains an iframe. This is not a
>> problem, but I want each link to open that page with another iframe
>> loading. So - for example - the 1st link on main.htm opens
>> index2.htm, which loads 3rdpage_1.htm in the iframe.. The 2nd links
>> on main.htm opens index2.htm as well, but loading with 3rdpage_2.htm
>> in the iframe. And so on. Can this be done? And if so, how can I
>> manage this?
>
> Basic javascript solution:
>
> http://www.neredbojias.net/_dem/main.html
>
> (View/Source for markup.)
>
> --
> Neredbojias
> People who live in glass houses must feel funny peeing.
> http://www.neredbojias.org/
> http://www.neredbojias.net/
Hi,
I turned your script into this (see underneath) and it worked!
You can find it on
www.fokkenauta.nl
Cheers,
Fokke
<script type="text/javascript">
var s;
if (location.search.slice(1)=='a') {
s='computerdocent.htm';
} else if (location.search.slice(1)=='b') {
s='cursusoverzicht.htm';
} else if (location.search.slice(1)=='c') {
s='opmaat.htm';
} else if (location.search.slice(1)=='d') {
s='fokke.htm';
} else if (location.search.slice(1)=='e') {
s='contact.htm';
}
if (location.search.slice(1)=='e') {
document.write('<div><iframe id="ifr" src="' + s + '" scrolling="auto"
ALLOWTRANSPARENCY> <\/iframe><\/div>');
} else {
document.write('<div><iframe id="ifr" src="' + s + '" scrolling="auto"
style="FILTER: chroma(color=#fffffe)" ALLOWTRANSPARENCY>
<\/iframe><\/div>');
}
</script>