**edit - dont bother reading this, its very long and boring... see my reply below**
Hello all, take a seat... you may be here some time!
Ive struggled with this for hours last night and still can't fix it... Itâs the only remaining problem with this current verison of my website code.
this is the site im talking about :
ok here goes.
in the folio section of my website, im using the following piece of code to load 3 frames in a frameset called folio.html:
<a href="#" onclick="window.open('10associates_frame1.html','10associates_frame1');window.open('10associates_frame2.html' ,'10associates_frame2');window.open('10associates_frame3.html', '10associates_frame3');"> 10associates link </a>
for example 1 see http://www.madewithpixels.co.uk and navigate to folio > world wide web > 10associates - the last click is the place the code example above is executed. and as you'll see theres nothing wrong here, it works a-ok, the correct folio content pages load in their correct frames...
however, if i use a different piece of code to navigate to a simliar frameset then when the main folio links are clicked, they do not open in the frames, but in seperate windows.
so, this new, example 2 code (which is a link made from a cell) is:
<td colspan="4" class="news_body"
onmouseover="this.style.backgroundColor='#FF00FF'; this.style.cursor='hand'; this.style.color='#FFFFFF';"
onmouseout="this.style.backgroundColor='#7C8088'; this.style.color='#CCCCCC';"> link text </td>
this takes you to a new frameset that contains the code (same as example 1) but the code in example 1 now does not work correctly - to see this working goto http://www.madewithpixels.co.uk and click the '10associates is completed' button on the news section, then click the 'printed media' button to see what i mean.
(note: as i mentioned, using the 'news link' does not take you to the same folio.html as before, but to a seperate file called folio_10associates.html)
im pretty sure its the window.open command in the first piece of code that is causing the problem, it cant be that theres something different about folio.html and folio_10associates.html as they contain exactly the same frames.
to make matters worse, the Opera browser seems to behave like the 2nd example all the time, opening ALL the folio links in a seperate window no matter which way you navigate into the folio section...
im thinking that this 'Opera' issue is telling me something and that im using the wrong syntax for the folio links. should i be using
its driving me insane! does anyone have any idea whats going on?
cheers v much for any help
after playing around for an hour, heres the short version of what i'm trying to achieve...
can anyone tell me if theres a different syntax for loading multiple frames from a cell made into a link with the OnClick command, other than the following code...
<td onclick="window.open('frame1.html','frame1'); window.open('frame2.html', 'frame2');"
onmouseover="this.style.backgroundColor='#FF00FF';this.style.cursor='hand'; this.style.color='#FFFFFF';" > text label </td>
In opera, this code forces all the links to open in seperate tabs/windows rather than loading them into the proper frames.
im thinking that i should be using something like:
but i dont know if this is correct (i cant get it to work anyway) and i dont know how to add multiple targets to it either
cheers very much for any help, this is really frustrating me now... no one seems to know the answer.
sorry, i thought i'd posted in the off topic forum (it was a very very long night)
i did fix it in the end tho!... and was inspired to start the whole thing again in pure css, my head hurts already!
sorry for the confusion