Hvordan gør man sådan at mit link ændre 2 iframes?

Tags:    programmering

--- Koden ---
« <a target=content href=news.htm>N E W S</a> ·

Den skal også gøre dette:
<a target=navigator href=navigator-news.htm>

//CoBolt



3 svar postet i denne tråd vises herunder
1 indlæg har modtaget i alt 1 karma
Sorter efter stemmer Sorter efter dato
--- Koden ---
« <a target=content href=news.htm>N E W S</a> ·

Den skal også gøre dette:
<a target=navigator href=navigator-news.htm>

//CoBolt

[kode]
<script>
function skiftbeggeframes() {
top.content.location.href = 'news.htm';
top.navigator.location.href = 'navigator-news.htm';
}
</script>

<a href="javascript:skiftebeggeframes(); return true;">N E W S</a>
[/kode]

M.V.H.
Loke Dupont aka colde

[Redigeret d. 02/01-06 02:07:07 af Loke Dupont]



<script>
function news() {
top.content.location.href = 'news.htm';
top.navigator.location.href = 'navigator-news.htm';
}
function members() {
top.content.location.href = 'members.htm';
top.navigator.location.href = 'navigator-members.htm';
}
</script>
<font>
« <a href="javascript:news(); return true;">N E W S</a> · <a href="javascript:members(); return true;">M E M B E R S</a> »
</font>

Den gider ikke det script der står ovenover...
Og der er noget der hedder news.htm osv.
Den siger bare "Error on page"

//CoBolt



Vil lige sige vi fik løst problemet

<script>
function news() {
top.content.location.href = 'news.htm';
top.menu.location.href = 'menunews.htm';
}
function members() {
top.content.location.href = 'members.htm';
top.menu.location.href = 'menumembers.htm';
}
function clanwars() {
top.content.location.href = 'clanwars.htm';
top.menu.location.href = 'menuclanwars.htm';
}
function sponsors() {
top.content.location.href = 'sponsors.htm';
top.menu.location.href = 'menusponsors.htm';
}
function join() {
top.content.location.href = 'join.htm';
top.menu.location.href = 'menujoin.htm';
}
function challenge() {
top.content.location.href = 'challenge.htm';
top.menu.location.href = 'menuchallenge.htm';
}
</script>
<font color="#FFFFFF" face="Bauhaus 93" size=3>
<font size=4>«</font>
<a href="javascript:news()">N E W S</a> <font size=4>·</font>
<a href="javascript:members()">M E M B E R S</a> <font size=4>·</font>
<a href="javascript:clanwars()">C L A N W A R S</a> <font size=4>·</font>
<a href="javascript:sponsors()">S P O N S O R S</a> <font size=4>·</font>
<a href="javascript:join()">J O I N</a> <font size=4>·</font>
<a href="javascript:challenge()">C H A L L E N G E</a>
<font size=4>»</font>
</font>

sådan kom scriptet til at se ud :)

thx colde
//CoBolt



t