WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Programmierung (http://www.wcm.at/forum/forumdisplay.php?f=17)
-   -   sound-button in html (http://www.wcm.at/forum/showthread.php?t=30418)

RaistlinMajere 18.09.2001 16:40

@snowman
 
und wie sieht diese lösung aus? interessiert mich.

snowman 18.09.2001 23:21

da gibt es mehrere:

1.:
have the last frame loaded look to see if the other frame contains a matching page:

<body onLoad="if (top.otherframe.location.href.indexOf('matchingpag e.html') ==-1) top.otherframe.location='matchingpage.html'">


2.:
Instead of loading a new framing file each time you have to change more than one frame, try implementing the following script in the <HEAD> of your HTML document.

<SCRIPT language="JavaScript">
<!--
function framer(loc) {parent.main.location.href = loc}
//-->
</SCRIPT>

The framer function will load a specified location to the frame named "main" (The frame name is set in the original framer file). Changing two frames at once can then be handled by inserting a link into the <BODY> of the document.

link

This will load 'file1.html' into the current frame (the frame wherein the script is installed), and load 'file2.html' into the frame named 'main'. You may easily alter the script to include more frames.

Remember that these features require that your visitor's browser supports javascripting.


aber ersteres ist viel cooler.

gruss,
snowman

mqs 21.09.2001 19:14

Re
 
Am besten ist, wenn du eine Flash anim einbaust.
Mit der geht das am einfachsten, und der Aufwand ist auch nicht so gross.

Dillinger 22.09.2001 06:48

hm - wenn mans neu lernen muß ist schon ein Aufwand :eek:
womit erstellt man sowas am besten? (freeware bevorzugt! ;-)

RaistlinMajere 22.09.2001 09:44

ich merks ned
 
weil ich chello hab, habe mir aber von 56k-usern sagen lassen, daß flash ziemlich zum laden braucht, das wäre vielleicht auch etwas, über das man sich gedanken machen sollte, bevor mans einsetzt.

mqs 22.09.2001 19:29

re
 
Tjo oba des mitn Sound auf ana HP is eigentlich störend, i sog des von mir aus. Wenn i auf a hp geh, und dort is a musik, des stöhrt mi echt, weil i meißtens meine eigenen lieder höhre. I was donn ned, ob des so gut is mit ana Music, ausser es sind soundeffekte auf einer Flashpage.


Alle Zeitangaben in WEZ +2. Es ist jetzt 06:05 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag