home *** CD-ROM | disk | FTP | other *** search
- From: "CoModerator of RU.JAVASCRIPT" <koronin@yahoo.com>
- Date: Tue, 6 Feb 2001 09:21:37 +0000 (UTC)
- Subj: RU.JAVASCRIPT FAQ
-
- I. Docs and Links
- 1.∩ε°δΦ≥σ ∞σφ ≥≤Σα, πΣσ σ±≥ⁿ ΩαΩΦσ ΩφΦµΩΦ
- (∞εµφε Φ φα αφπδΦΘ±Ωε∞) ∩ε ²⌡ε≥απ≤, δ≤≈°σ Γ ²δσΩ≥≡εφφε∞ ΓΦΣσ
-
- >╩φΦπΦ ∩ε JavaScript:
- >>From: "Vitaly Vasilchuk" <vitaly@basis.ru.kiev.ua>
-
- www.izone.com.ua/info/download_web.html
-
- >>From : shilk@telecom.chita.ru
-
- ┬ε≥ ≈≥ε φα≡√δ Γ ±Γεσ Γ≡σ∞ :
-
- 1) Hα≥αδΦ ┴σδⁿ≥ΦΩεΓα, ╚≡Φφα ╩≤τΦφα. ╠σ≥εΣ√ Φ ⌠≤φΩ÷ΦΦ JavaScript.
- http://webims.virtualave.net/docs/js/jsrus/index.htm
-
- 2) Hσßεδⁿ°εΘ ±∩≡αΓε≈φΦΩ ∩ε JavaScript by Ataev RUSlan
- http://gid.spb.ru/RUS/Java.htm
-
- 3) JavaScript ╪απ τα °απε∞ by └φΣ≡σΘ ╩≤τΦφ
- http://www.mjk.msk.ru/~dron/html/js.shtml
-
- >>From : Artem Babadzhanyants
-
- http://developer.netscape.com
- http://www.javascript.com
- http://www.javascript.ru
- http://www.citycat.ru/doc/
- http://godegisel.protey.ru/library/docs/www/
-
- >>From: Alexey Medvedev 2:463/733.137
-
- www.bratta.com/dhtml/ - ∩≡ΦΩεδⁿφ√Θ JS ≥Φ∩α Flash/vector graphics
- ∞φεπε ∩≡Φ∞σ≡εΓ Σδ ΓφσΣ≡σφΦ Γ ±ΓεΦ ±≥≡αφΦ≈ΩΦ.
-
- www.dansteinman.com/dynduo/ - Ω≡ε±± ß≡ε≤τσ≡ DHTML API φΦτΩεπε
- ≡εΓφ (IE4,5 , NN4 , Mozilla5). ╨ατ≡αßα≥√Γασ≥± ∩εΣ GNU license.
- ±≥ⁿ ≡σαδΦτα÷Φ widget-εΓ (Ωφε∩ΩΦ, check, list, menu, window, scroll .etc.)
-
- www.htmlguru.com - "≡εΣεφα≈αδⁿφΦΩ" DHTML :)
- ±≥Φδⁿφε ε⌠ε≡∞δσφ√Θ ±αΘ≥ ± ≤≈σßφΦΩα∞Φ ∩ε DHTML
-
- deep.kiev.ua - ∩≡Φ∞σ≡ ≡σαδΦτα÷ΦΦ π≡α⌠εΓ Σδ NN-DHTML
- (∞α±°≥αßΦ≡εΓαφΦσ ∩εΣ εΩφε, εß≡αßε≥Ωα resize event ßστ reload - NN).
-
- deep.kiev.ua/~netlib/ - ßΦßδΦε≥σΩα ∩ε webdesign. ╬±φεΓφα ≈α±≥ⁿ
- ε±Γ ∙σφα JS , DHTML ± ∩≡Φ∞σ≡α∞Φ (φα∩≡Φ∞σ≡ ΩαΩ _±ετΣαΓα≥ⁿ_ GIF Φ PNG
- α≡≥ΦφΩΦ φα JS Γ NN ΦδΦ ΩαΩ ±Σσδα≥ⁿ σ⌠⌠σΩ≥ hover Γ NN ).
-
-
- >>From: Evgenij Koronin <koronin@yahoo.com>
-
- W3 concorcium resources
- http://www.w3.org/MarkUp/W3 - HyperText Markup Language
- http://www.w3.org/MarkUp/W3 - XHTML Recommendation
- http://www.w3.org/CSS/W3 - CSS and Style
- http://www.w3.org/DOM/W3 - Document Object Model
- http://www.w3.org/XML/W3 - XML
- http://www.w3.org/TV/W3 - TV and the Web
-
- HTML, CSS and Javascript
- http://www.blooberry.com/indexdot/html/ - HTML Reference
- http://www.blooberry.com/indexdot/css/ - CSS Reference
- http://www.htmlib.com/where.htm - HTMLib 4.0 - complete HTML/CSS/Javascript
- reference (download)
-
- Complete Libraries
- http://msdn.microsoft.com/workshop/ - MSDN Workshop
- http://developer.netscape.com/docs/index.html - Netscape DevEdge
- Documentation Library
- http://www.wdvl.com - Web Developer's Virtual Library
-
-
- Articles and Tutorials
- http://builder.cnet.com - CNET Web Builder
- http://www.siteexperts.com - Site Experts
- http://www.webdeveloper.com - Web Developer
- http://www.zdnet.com/devhead/ - ZDNet Developer Head
- http://hotwired.lycos.com/webmonkey/ - Hotwired Webmonkey
- http://developer.earthweb.com/ - Earthweb Developer
- http://www.webreview.com/ - Web Review
- http://www.webreference.com/ - Web Reference
- http://www.1001tutorials.com/ - 1001 Tutorials
-
-
- Γ±≥αΓδ Θ≥σ ±ΓεΦ ±±√δΩΦ!
-
-
- II. General javascript
-
- 1. ≥αΩ, ≈≥εß√ φα ±εß√≥Φσ onclick - ⌠εφ ∞σφ δ± ?
-
- >> From : Vitaly Karmazinsky 2:5020/400 Mon 13 Dec 99
- 12:24
-
- Q> ≥αΩ, ≈≥εß√ φα ±εß√≥Φσ onclick - ⌠εφ ∞σφ δ± ?
-
- <A HREF="http://www.yahoo.com"
- onMouseOver="document.bgColor='red'">Yahoo</a>
-
- ┴≤Σ≤∙ΦΘ ⌠εφ ε∩≡σΣσδ σ≥± ∞σµΣ≤ ΩαΓ√≈Ωα∞Φ ' '
-
- red - Ω≡α±φ√Θ;
- black - ≈σ≡φ√Θ;
- yellow - µσδ≥√Θ;
- white - ßσδ√Θ;
- green - τσδσφ√Θ;
- brown - Ωε≡Φ≈φσΓ√Θ;
-
- bgColor - ⌠εφ;
- fgColor - ≥σΩ±≥;
- linkColor - ÷Γσ≥ ±±√δΩΦ;
-
-
- >>From Evgenij Koronin <koronin@yahoo.com>
- <a href="javascript:document.bgColor='red'">change color</a>
-
-
- 2. ┬εß∙σ∞, φαΣε σ±δΦ ΓΩδ■≈σφ js ∩εΩατα≥ⁿ εΣΦφ Ω≤±ε≈σΩ html ΩεΣα, α σ±δΦ
- Γ√Ωδ■≈σφ Σ≡≤πεΘ.
-
- From: "Michael A. Kangin" <mak@complife.net>
-
- <script>
- document.writeln('╬ΣΦφ Ω≤±ε≈σΩ')
- </script>
- <noscript>
- ─≡≤πεΘ Ω≤±ε≈σΩ
- </noscript>
-
- 3. └ ΩαΩ φα JavaScript ∩ε πΦ∩σpcc√δΩσ ∞εµφε ∩σpσΣα≥ⁿ
- ∩αpα∞σ≥p (φα∩pΦ∞σp φατΓαφΦσ ⌠αΘδα) cε εΣφεΘ c≥pαφΦ≈ΩΦ
- φα Σp≤π≤■? ╚Σσ cεc≥εΦ≥ Γ ≥ε∞, ≈≥εß√ c≥pαφΦ≈Ωα pαßε≥αδα
- ∩ε-pατφε∞≤ Γ ταΓΦcΦ∞εc≥Φ ε≥ ≥επε, ε≥Ω≤Σα φα φσ╕ Γε°δΦ.
-
- >> From : Michael A. Kangin 2:5020/400 Fri 28 Jan
- 00 03:26
-
- 1. ╬≥Ω≤Σα ∩≡Φ°δΦ φα Σαφφ≤■ ±≥≡αφΦ≈Ω≤, ∞εµφε ∩ε∩≡εßεΓα≥ⁿ ≤τφα≥ⁿ ∩ε
- document.referrer
-
- 2. ╧α≡α∞σ≥≡√ ∞εµφε ∩σ≡σΣαΓα≥ⁿ ΩαΩ <a href="file.htm?parameter=value">, Φ
- Γ√≥α±ΩΦΓα≥ⁿ Φ⌡ ΩαΩ parameter=document.location.search;
-
-
- 4. ╧ε∞φ■, ≈≥ε Σδ ≥επε, ≈≥εß√ ∩σpσΣα≥ⁿ ∩αpα∞σ≥p, φαΣε:
- <A HREF="webpage.htm?param1=value1¶m2=value2&...">ssd</A>
- └ Γε≥ ΩαΩ Σεß√≥ⁿ τφα≈σφΦ ∩αpα∞σ≥pεΓ, φσ ∩ε∞φ■.
-
- >>From: Evgenij Koronin <koronin@yahoo.com>
- Modified code taken from MSTV OneWorld UI
- ----------------------------------------------
- var QueryString = new Array();
- QueryString["_"]="";
-
- function unspace( qs_element ) {
- return qs_element.split( '+' ).join( ' ' );
- }
-
- if ( location.search.length > 1 ) {
- var qs_query = location.search.substring( 1, location.search.length );
- var qs_pairs = qs_query.split( '&' );
-
- for ( var qs_index = 0; qs_index < qs_pairs.length; qs_index++ ) {
- var qs_element = qs_pairs[qs_index].split( '=' );
- QueryString[qs_element[0]] = unspace( unescape( qs_element[1] ) );
- }
- }
- ----------------------------------------------
- Φ±∩εδⁿτεΓα≥ⁿ: var myVar = QueryString["parameter"];
-
- 5. ∩oΣcΩaµΦ≥e plz ΩaΩ cΣeδa≥ⁿ Γ html cc√δΩy Ωo≥opa ß√ paßo≥aδa ΩaΩ Ω≥o∩Ωa
- back Γ ßpoyτepe
-
- >> From : Igor Kanshin 2:463/1124.50 Sat 05 Feb 00
- 11:39
-
- <a href="JavaScript:history.back()">Back</a>
-
- 6. ╧pσΣ∩εδεµΦ∞ φαΣε ±ετΣα≥ⁿ φεΓεσ εΩε°Ωε, φε φσ φα ε±φεΓσ yµσ ±y∙σ±≥Γy■∙σπε
- html-⌠αΘδα, α ±⌠εp∞ΦpεΓα≥ⁿ σπε φα JavaScript Φ ∩ε≥ε∞ yµσ ε≥Ωp√≥ⁿ Γ φεΓε∞
- εΩφσ.
- >> From : Andrew Konovalov 2:5030/1139 Sun 13 Feb 00
- 09:11
- newWindow = window.open(...);
- newWindow.document.write(...);
-
- >>From: Evgenij Koronin <koronin@yahoo.com>
- newWindow = window.open("");
- s=your_html;
- with (newWindow.document)
- {
- open();
- write(s);
- close();
- }
-
-
-
- 7. └ ΩαΩ ∞εµφε ταπ≡≤τΦ≥ⁿ Ωα≡≥ΦφΩ≤ Σε ≥επε,
- ΩαΩ φα≈φ╕≥ ταπ≡≤µα≥ⁿ± ε±≥αδⁿφα ≈α±≥ⁿ ±≥≡αφΦ÷√?
-
- >> From : V.Kobychev 2:5020/400 Mon 21 Feb 00
- 15:44
- <html><head>
- <script LANGUAGE="JavaScript">
- <!--
- function PreloadImages()
- {
- if (document.images)
- {
- var imgFiles = PreloadImages.arguments;
- var preloadArray = new Array();
- for (var i=0; i<imgFiles.length; i++)
- {
- preloadArray[i] = new Image;
- preloadArray[i].src = imgFiles[i];
- }
- }
- }
- PreloadImages('picture1.jpg','picture2.jpg','picture3.gif'); // Φ σ∙σ
- ±ΩεδⁿΩε ≤πεΣφε Ωα≡≥ΦφεΩ
- // -->
- </script>
- <body>
- ....
- </body>
- </html>
-
- 8. ╩αΩ ²≥εΘ ⌡pσφⁿ■ ∩εδⁿτεΓα≥ⁿ± ????? Hα∩Φ±αφφε window.opener.δ -δ ;((
-
- >> From : Vitaly Karmazinsky 2:5020/400 Fri 17 Mar 00
- 13:45
- window.opener.document.my_form.my_element.value = 'test';
-
- ┬ε≥ ≥αΩΦ∞ ΩεΣε∞ ∞εµφε Γ±≥αΓΦ≥ⁿ Σαφφ√σ Γ ⌠ε≡∞≤
- ≡εΣΦ≥σδⁿ±Ωεπε εΩφα. ╨αßε≥ασ≥ ΓστΣσ.
-
- 9."Nikolai Levtchenko" <Nikolai.Levtchenko@p73.f4001.n5020.z2.fidonet.org>
- wrote in message >
- > ╤≤∙σ±≥Γ≤σ≥ δΦ ±αßµ? ╫≥εß√ ∞εµφε ß√δε ∩ε°απεΓε Γ√∩εδφ ≥ⁿ, ∩≡εΓσ≡ ≥ⁿ
- ±ε±ε≥ε φΦσ
- > ∩σ≡σ∞σφφ√⌡ Φ ≥.Σ.?
- >
-
- http://msdn.microsoft.com/scripting/debugger/default.htm
- ╬≈σφⁿ ≤Σα≈φ√Θ ε≥δαΣ≈ΦΩ ε≥ Netscape
- ftp://ftp.netscape.com/pub/jsdebug/rtm/jsd10su.jar
-
-
- III. Browser, mouse buttons, cookies, new windows etc.
-
- 1.≤ Ωεπε-φΦß≤Σⁿ σ±≥ⁿ ≤φΦΓσ≡±αδⁿφ√Θ ΩεΣ ≡αßε≥√ ± subj (⌠≤φΩ÷ΦΦ ≥Φ∩α
- setcookie,
- getcookie, killcookie..... )
-
- >>From: Evgenij Koronin <koronin@yahoo.com>
- //---------------------------------------------------------------------
- // Function to return the value of the cookie specified by "name".
-
- // Parameter:
- // name String object containing the cookie name.
-
- // Return: String object containing the cookie value, or null if
- // the cookie does not exist.
- //---------------------------------------------------------------------
- function GetCookie (name)
- {
- var arg = name + "=";
- var alen = arg.length;
- var clen = document.cookie.length;
- var i = 0;
-
- while (i < clen)
- {
- var j = i + alen;
- if (document.cookie.substring(i, j) == arg)
- return getCookieVal (j);
- i = document.cookie.indexOf(" ", i) + 1;
- if (i == 0) break;
- }
- return null;
- }
- //---------------------------------------------------------------------
- // Function to get a cookie.
- //---------------------------------------------------------------------
- function getCookieVal( offset )
- {
- var endstr = document.cookie.indexOf (";", offset);
-
- if (endstr == -1)
- endstr = document.cookie.length;
- return unescape(document.cookie.substring(offset, endstr));
- }
- //---------------------------------------------------------------------
- // Function to set a cookie.
- //---------------------------------------------------------------------
- function SetCookie( name, value )
- {
- var argv = SetCookie.arguments;
- var argc = SetCookie.arguments.length;
- var expires = (argc > 2) ? argv[2] : null;
- var path = (argc > 3) ? argv[3] : null;
- var domain = (argc > 4) ? argv[4] : null;
- var secure = (argc > 5) ? argv[5] : false;
-
- document.cookie =
- name + "=" + escape (value) +
- ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +
- ((path == null) ? "" : ("; path=" + path)) +
- ((domain == null) ? "" : ("; domain=" + domain)) +
- ((secure == true) ? "; secure" : "");
- }
- //---------------------------------------------------------------------
- // Function to delete a cookie. (Sets expiration date)
- // name - String object containing the cookie name
- //---------------------------------------------------------------------
- function DeleteCookie (name)
- {
- var exp = new Date();
- var cval = GetCookie (name);
-
- exp.setTime (exp.getTime() - 1); // This cookie is history
- document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
- }
-
- >> From : Vitaly Vasilchuk 2:5020/400 Wed 12 Apr 00
- 15:03
-
- <script language="JavaScript">
- <!--
- // ≡ατεß≡α≥ⁿ τφα≈σφΦσ Ωδ■≈α
- function extractCookieValue(val)
-
- if ((endOfCookie = document.cookie.indexOf(";", val)) == -1)
-
- endOfCookie = document.cookie.length;
- }
- return unescape(document.cookie.substring(val, endOfCookie)) ;
- }
-
- // ≈≥σφΦσ Ωδ■≈α
- function ReadCookie(cookiename) {
- var numOfCookies = document.cookie.length;
- var nameOfCookie = cookiename + "=";
- var cookieLen = nameOfCookie.length;
- var x = 0 ;
- while (x <= numOfCookies) {
- var y = (x + cookieLen);
- if (document.cookie.substring(x, y) == nameOfCookie)
- return (extractCookieValue(y));
- x = document.cookie.indexOf(" ", x) + 1;
- if (x == 0)
- break;
- }
- return "";
- }
-
- // ±ετΣαφΦσ Ωδ■≈α
- // Σδ ≤ΣαδσφΦ - expiredays = -1
- function createCookie(name, value, expiredays)
-
- var todayDate = new Date();
- todayDate.setDate(todayDate.getDate() + expiredays);
- document.cookie = name +
- "=" +
- value +
- "; expires=" +
- todayDate.toGMTString() +
- ";"
- }
-
- // ∩≡Φ∞σ≡ ταπ≡≤τΩΦ
- function LoadCookies() {
- document.forms[0].UserName.value=ReadCookie("UserName");
- }
-
- // ∩≡Φ∞σ≡ ±ε⌡≡αφσφΦ
- function SaveCookies() {
- createCookie("UserName", document.forms[0].UserName.value, 30);
- }
-
- //-->
- </script>
-
- 2. ∩≡Φ∞σ≡ ±Ω≡Φ∩≥α τα∩≡σ∙σφΦ ≡αßε≥√ ∩≡αΓεΘ Ωφε∩ΩΦ ∞√°Φ.
-
- >> From : Oleg Arkhipov 2:5020/400 Mon 06 Dec 99
- 11:01
- >>From: "Oleg Arkhipov" <arol@hippo.ru>
-
- Hα°σδ Γ FAQ-Server ( http://zl0ba.i.am ) ∩≡Φ∞σ≡ ±Ω≡Φ∩≥α τα∩≡σ∙σφΦ ≡αßε≥√
- ∩≡αΓεΘ Ωφε∩ΩΦ ∞√°Φ.
-
- <html>
- <head>
-
- <script LANGUAGE="JavaScript1.1">
- <!-- Begin
- function right(e) {
- if (navigator.appName == 'Netscape' &&
- (e.which == 3 || e.which == 2)) {
- alert("Sorry, you do not have permission to right click.");
- return false;
- } else if (navigator.appName == 'Microsoft Internet Explorer' &&
- (event.button == 2 || event.button == 3)) {
- alert("Sorry, you do not have permission to right click.");
- return false;
- }
- return true;
- }
-
- document.onmousedown=right;
- if (document.layers) window.captureEvents(Event.MOUSEDOWN);
- window.onmousedown=right;
- // End -->
- </script>
- </head>
- <body>
-
- </body>
- </html>
-
-
- 3. ╒ε≥σδε±ⁿ ß√ τφα≥ⁿ ΩαΩ ε∩≡σΣσδΦ≥ⁿ Φ ∞εµφε δΦ Γεεß∙σ ε∩≡σΣσδΦ≥ⁿ, ΩαΩα
- Ωφε∩Ωα φαµα≥α ≤ ∞√°Φ.
-
- >> From : Evgenij Koronin
-
- Φ±∩εδⁿτ≤Θ εß·σΩ≥ event
- The Event Object is supported by both Internet Explorer 4.0 and Netscape
- (from 3.0). Properties of the event object are available for every event
- that occurs on every scriptable object within a document.
-
- event.button
- The button property contains an integer value which represents which of the
- mouse buttons were used when the event occurred. The possible values are:
-
- Value Button pressed
- 0 No mouse button pressed
- 1 Left mouse button pressed
- 2 Right mouse button pressed
- 4 Middle button pressed
-
- 4. ╤ ²≥Φ∞ Γε∩≡ε±ε∞ τα°σδ φσ±ΩεδⁿΩε Φτ ΣαδσΩα. ╩εφΩ≡σ≥φε, ΩδΦσφ≥≤
- φσεß⌡εΣΦ∞
- Φφ≥σ≡⌠σΘ ≥Φ∩α WinApp, ≥ε σ±≥ⁿ popupMenu ∩ε ∩≡αΓεΘ Ωφε∩Ωσ ∞√°Φ. Hα
- WebClub.ru φα°σδ Ωεσ-≈≥ε, φε ≥α∞ ∩≡Φ∞σ≡ φα VBScript Φ ≈σ≡στ ±Ω≡Φ∩δσ≥.
- ╒ε≥σδε±ⁿ ß√ ΩαΩ-φΦß≤Σⁿ ∩ε ∩≡ε∙σ, ∩ε ∩≡εδσ≥α≡±Φ, Φ φα JavaScript.
-
- >> From : Evgenij Koronin
- ╧≡ε±≥σΘ°ΦΘ ∩≡Φ∞σ≡:
-
- <script>
- <!--
- function click() {
- if (event.button==2) {
- alert(Hello')
- }
- document.onmousedown=click
- ///-->
-
-
- ≥σ∩σ≡ⁿ ±∞ε≥≡Φ,Γ∞σ±≥ε αδσ≡≥α ∞εµφε Γ√τ√Γα≥ⁿ ⌠≤φΩ÷Φ■, ∩ε Ωεε≡εΘ ß≤Σσ≥
- ∩εΩατ√Γα≥ⁿ± ±δεΘ ± δΦφΩα∞Φ (π≡α⌠ΦΩα ΦδΦ σ∙σ ≈≥ε - Γ φσ∞ σ∙σ ∞εµφε ∩εΣ±Γσ≥Ω≤
- ±Σσδα≥ⁿ - ²≥ε ≤µσ ε≥Σσδⁿφ√Θ Γε∩≡ε±). ┬ ±δεσ Ωε≡ε≈σ Φ ß≤Σσ≥ ∞σφ■, πδαΓφεσ
- ∩εΦ∞σ≥ⁿ Ωεε≡ΣΦφα≥√ ∞√°Φ ≈σ≡στ ≥ε≥ µσ εß·σΩ≥ event Φ ±δεΘ ε≥∩ετΦ÷ΦεφΦ≡εΓα≥ⁿ
- φα ²≥Φ Ωεε≡ΣΦφα≥√. - Γ±σ. ─α - ∩εΣ HH φαΣε ß≤Σσ≥ Φ±∩εδⁿτεΓα≥ⁿ
- document.captureEvent(MOUSEDOWN) - ∩ε±∞ε≥≡Φ HH ΣεΩ≤, α ≥ε ╚┼ ∩εφΦ∞ασ≥, ≈≥ε ≤
- ΣεΩ≤∞σφ≥α σ±≥ⁿ onmousedown, α HH ßστ ²≥επε - φσ≥.
- ╚ ∩ε≈Φ≥αΘ ΓφΦ∞α≥σδⁿφε ∩≡ε event handlers. - Γ Ωεφ÷σ ⌠≤φΩ÷ΦΦ, ∩ε ∞εσ∞≤ φαΣε
- ΓετΓ≡α≥Φ≥ⁿ false - ≥επΣα ±α∞ε ∞σφ■ ε≡ΦπΦφαδⁿφεσ φσ ß≤Σσ≥ Γ√ΣαΓα≥ⁿ± .
-
- ─α ±εΓ±σ∞ ταß√δ - ≡ατδΦ≈Φ ╚┼ Φ HH
- for IE
- event.button
- event.x
- event.y
-
- for NN
- event.which
- event.pageX
- event.pageY
-
- 5.═σ ∞επ ß√ ≥√ ∩≡ΦΓσ±≥Φ ∩≡Φ∞σ≡ ±Ω≡Φ∩≥ΦΩα, Ωε≥ε≡√Θ ß√ ≥σΩ±≥ε∞ ∩Φ±αδ online
- ΦδΦ offline?
-
- >> From : Evgenij Koronin 2:5020/400 Mon 27 Mar 00
- 19:52
-
- ╩αΩ ΣΓα ∩αδⁿ÷α - Γε≥, ≤ ∞σφ ∩Φ°σ≥
-
- <html>
- <head><title> Online test </title>
- </head>
-
- <body>
- Internet Explorer in <B>
- <script language="javascript1.2">
- <!--
- if (document.all)
- document.write(navigator.onLine?"online":"offline");
- // -->
- </script>
- </B> mode
- </body>
- </html>
-
- 6. ╨α±∩σ≈α≥Ωα ±≥≡αφΦ÷√ Φτ ΩεΣα
- >>From: Nikolay Pichtin
-
- ▌≥ε ∩ε∩≡εß≤Θ≥σ.
-
- <SCRIPT>
- function displayPrintButton() {
- if ((navigator.appName.indexOf("Netscape") > -1 &&
- parseInt(navigator.appVersion) >= 4) ||
- (navigator.appName.indexOf("Microsoft") > -1 &&
- parseInt(navigator.appVersion) >= 4) ) {
- document.write
- ("<FORM><INPUT TYPE=button VALUE='Print'
- ("<FORM>onClick='printCurrentPage();'></FORM>");
- }
- }
-
- function printCurrentPage() {
- if (navigator.appName.indexOf("Microsoft") > -1 &&
- navigator.appVersion.indexOf("5.") == -1) {
- // IE4
- OLECMDID_PRINT = 6;
- OLECMDEXECOPT_DONTPROMPTUSER = 2;
- OLECMDEXECOPT_PROMPTUSER = 1;
- WebBrowser =
- '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0
- CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
- document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
- WebBrowser1.ExecWB(OLECMDID_PRINT, OLECMDEXECOPT_PROMPTUSER);
- WebBrowser1.outerHTML = "";
- }
- else {
- // N4 IE5
- window.print();
- }
- }
-
- displayPrintButton();
- </SCRIPT>
-
-
- 7. ╩αΩ ε∩≡σΣσδΦ≥ⁿ - ΩαΩε■ ≤ ■τσ≡α ß≡α≤τσ≡?
-
- >> From : Artem Babadzhanyants
-
- >╩αΩ ε∩≡σΣσδΦ≥ⁿ - ΩαΩε■ ≤ ■τσ≡α ß≡α≤τσ≡?
-
- // Browser propeties check library. Version 1.02
- // (C) Zalog 2000. Permission granted to reuse and distribute.
- // e-mail: zalog@pyramid-studio.com
-
- function Browser(){
- this.checkScreen=Browser_checkScreen;
- this.getCookieVal=Browser_getCookieVal;
- this.fixCookieDate=Browser_fixCookieDate;
- this.getCookie=Browser_getCookie;
- this.setCookie=Browser_setCookie;
- this.deleteCookie=Browser_deleteCookie;
- this.getHostName=Browser_getHostName;
- this.getHostAddress=Browser_getHostAddress;
- this.agent=navigator.userAgent.toLowerCase();
- (navigator.appName)?this.name=navigator.appName:this.name=null;
-
- (navigator.appCodeName)?this.codeName=navigator.appCodeName:this.codeName=nu
- ll;
-
- (navigator.securityPolicy)?this.securityPolicy=navigator.securityPolicy:this
- ..securityPolicy=null;
- this.versionHi=parseInt(navigator.appVersion);
- this.version=parseFloat(navigator.appVersion);
- if(navigator.cpuClass){
- this.cpu=navigator.cpuClass.toLowerCase();
- this.cpuClass="Unknown CPU class, including Sun SPARC";
- if(navigator.cpuClass.indexOf("x86")!= -1) this.cpuClass="Intel
- processor";
-
-
-
-
- if((navigator.cpuClass.indexOf("68k")!= -1)||(navigator.cpuClass.indexOf("pp
- c")!= -1)) this.cpuClass="Motorola processor";
- if(navigator.cpuClass.indexOf("alpha")!= -1) this.cpuClass="Digital
- processor";
- }else{
- this.cpu=null;
- this.cpuClass=null;
- }
- (navigator.onLine )?this.onLine=navigator.onLine:this.onLine=null;
- if(navigator.cookieEnabled)this.cookieEnabled=navigator.cookieEnabled;
- else{
- var expdate=new Date();
- expdate.setTime(expdate.getTime()+(365*24*60*60*1000));
- this.fixCookieDate(expdate);
- this.setCookie("test_js","safe to delete",expdate,"/");
-
- (this.getCookie("test_js"))?this.cookieEnabled=true:this.cookieEnabled=false
- ;
- this.deleteCookie("test_js","/");
- }
- if(navigator.language)this.language=navigator.language;
- else if(navigator.browserLanguage)this.language=navigator.browserLanguage;
- else this.language=null;
-
- (navigator.systemLanguage)?this.systemLanguage=navigator.systemLanguage:this
- ..systemLanguage=null;
-
- (navigator.userLanguage)?this.userLanguage=navigator.userLanguage:this.userL
- anguage=null;
-
- this.Netscape=((this.agent.indexOf('mozilla')!=-1)&&(this.agent.indexOf('spo
- ofer')==-1)&&(this.agent.indexOf('compatible')==-1)&&(this.agent.indexOf('op
- era')==-1)&&(this.agent.indexOf('webtv')==-1));
- this.Netscape2=(this.Netscape&&(this.versionHi==2));
- this.Netscape3=(this.Netscape&&(this.versionHi==3));
- this.Netscape4=(this.Netscape&&(this.versionHi==4));
- this.Netscape4up=(this.Netscape&&(this.versionHi>=4));
- this.Netscape5=(this.Netscape&&(this.versionHi==5));
- this.Netscape5up=(this.Netscape&&(this.versionHi>=5));
-
- this.NavigatorOnly=(this.Netscape&&((this.agent.indexOf(";nav")!=-1)||(this.
- agent.indexOf("; nav")!=-1)));
- this.IE=(this.agent.indexOf("msie") != -1);
- this.IE3=(this.IE&&(this.versionHi<4));
- this.IE4=(this.IE&&(this.versionHi==4)&&(this.agent.indexOf("msie
- 5.0")==-1));
- this.IE4up=(this.IE&&(this.versionHi>=4));
- this.IE5=(this.IE&&(this.versionHi==4)&&(this.agent.indexOf("msie
- 5.0")!=-1));
- this.IE5up=(this.IE&&!this.IE3&&!this.IE4);
- if(this.IE5){
- this.versionHi=parseInt(this.agent.substr(this.agent.indexOf("5.")));
- this.version=parseFloat(this.agent.substr(this.agent.indexOf("5.")));
- }
- this.AOL=(this.agent.indexOf("aol")!= -1);
- this.AOL3=(this.AOL&&this.IE3);
- this.AOL4=(this.AOL&&this.IE4);
- this.Opera=(this.agent.indexOf("opera")!=-1);
- this.WebTV=(this.agent.indexOf("webtv")!=-1);
- if(this.Netscape2||this.IE3)this.jsVersion=1.0;
- else if(this.Netscape3||this.Opera)this.jsVersion=1.1;
- else
- if((this.Netscape4&&(this.version<=4.05))||this.IE4)this.jsVersion=1.2;
- else
- if((this.Netscape4&&(this.version>4.05))||this.IE5)this.jsVersion=1.3;
- else if(this.Netscape5)this.jsVersion=1.4;
- else if(this.Netscape&&(this.versionHi>5))this.jsVersion=1.4;
- else if(this.IE&&(this.versionHi>5))this.jsVersion=1.3;
- else if(_jsVersion>1.3)this.jsVersion=_jsVersion;
- else this.jsVersion=0.0;
- this.vbVersion=vbVer;
-
- this.osWin=((this.agent.indexOf("win")!=-1)||(this.agent.indexOf("16bit")!=-
- 1));
-
- this.osWin95=((this.agent.indexOf("win95")!=-1)||(this.agent.indexOf("window
- s 95")!=-1));
-
- this.osWinCE=((this.agent.indexOf("wince")!=-1)||(this.agent.indexOf("window
- s ce")!=-1)||(this.agent.indexOf("win ce")!=-1));
-
- this.osWin16=((this.agent.indexOf("win16")!=-1)||(this.agent.indexOf("16bit"
- )!=-1)||(this.agent.indexOf("windows
- 3.1")!=-1)||(this.agent.indexOf("windows 16-bit")!=-1));
- this.osWin31=((this.agent.indexOf("windows
- 3.1")!=-1)||(this.agent.indexOf("win16")!=-1)||(this.agent.indexOf("windows
- 16-bit")!=-1));
-
- this.osWin98=((this.agent.indexOf("win98")!=-1)||(this.agent.indexOf("window
- s 98")!=-1));
-
- this.osWinNT=((this.agent.indexOf("winnt")!=-1)||(this.agent.indexOf("window
- s nt")!=-1));
- this.osWin2000=(this.osWinNT||(this.agent.indexOf("nt 5.0")!=-1));
-
- this.osWin32=(this.osWin95||this.osWinNT||this.osWin98||this.osWin2000||((th
- is.versionHi>=4)&&(navigator.platform=="Win32"))||(this.agent.indexOf("win32
- ")!=-1)||(this.agent.indexOf("32bit")!=-1));
-
- this.osOS2=((this.agent.indexOf("os/2")!=-1)||(navigator.appVersion.indexOf(
- "OS/2")!=-1)||(this.agent.indexOf("ibm-webexplorer")!=-1));
- this.osMac=(this.agent.indexOf("mac")!=-1);
-
- this.osMac68k=(this.osMac&&((this.agent.indexOf("68k")!=-1)||(this.agent.ind
- exOf("68000")!=-1)));
- this.osMacPPC=(this.osMac &&
- ((this.agent.indexOf("ppc")!=-1)||(this.agent.indexOf("powerpc")!=-1)));
- this.osSun=(this.agent.indexOf("sunos")!=-1);
- this.osSun4=(this.agent.indexOf("sunos 4")!=-1);
- this.osSun5=(this.agent.indexOf("sunos 5")!=-1);
- this.osSuni86=(this.osSun&&(this.agent.indexOf("i86")!=-1));
- this.osIrix=(this.agent.indexOf("irix")!=-1);
- this.osIrix5=(this.agent.indexOf("irix 5")!=-1);
- this.osIrix6=((this.agent.indexOf("irix
- 6")!=-1)||(this.agent.indexOf("irix6")!=-1));
- this.osHPUx=(this.agent.indexOf("hp-ux")!=-1);
- this.osHPUx9=(this.osHPUx&&(this.agent.indexOf("09.")!=-1));
- this.osHPUx10=(this.osHPUx&&(this.agent.indexOf("10.")!=-1));
- this.osAIX=(this.agent.indexOf("aix")!=-1);
- this.osAIX1=(this.agent.indexOf("aix 1")!=-1);
- this.osAIX2=(this.agent.indexOf("aix 2")!=-1);
- this.osAIX3=(this.agent.indexOf("aix 3")!=-1);
- this.osAIX4=(this.agent.indexOf("aix 4")!=-1);
- this.osLinux=(this.agent.indexOf("inux")!=-1);
-
- this.osSCO=(this.agent.indexOf("sco")!=-1)||(this.agent.indexOf("unix_sv")!=
- -1);
- this.osUnixWare=(this.agent.indexOf("unix_system_v")!=-1);
- this.osMPRAS=(this.agent.indexOf("ncr")!=-1);
- this.osReliant=(this.agent.indexOf("reliantunix")!=-1);
-
- this.osDEC=((this.agent.indexOf("dec")!=-1)||(this.agent.indexOf("osf1")!=-1
- )||(this.agent.indexOf("dec_alpha")!=-1)||(this.agent.indexOf("alphaserver")
- !=-1)||(this.agent.indexOf("ultrix")!=-1)||(this.agent.indexOf("alphastation
- ")!=-1));
- this.osSinix=(this.agent.indexOf("sinix")!=-1);
- this.osBSD=(this.agent.indexOf("bsd")!=-1);
- this.osFreeBSD=(this.agent.indexOf("freebsd")!=-1);
- this.osOpenBSD=(this.agent.indexOf("openbsd")!=-1);
- this.osNetBSD=(this.agent.indexOf("netbsd")!=-1);
- this.osBSDi=(this.agent.indexOf("bsdi")!=-1);
-
- this.osUnix=((this.agent.indexOf("x11")!=-1)||this.osSun||this.osIrix||this.
- osHPUx||this.osSCO||this.osUnixWare||this.osMPRAS||this.osReliant||this.osDE
- C||this.osSinix||this.osAIX||this.osLinux||this.osBSD||this.osFreeBSD);
-
- this.osVMS=((this.agent.indexOf("vax")!=-1)||(this.agent.indexOf("openvms")!
- =-1));
- this.hostName=null;
- this.hostAddress=null;
- this.hostName=this.getHostName();
- this.hostAddress=this.getHostAddress();
- this.checkScreen();
- }
-
- function Browser_checkScreen(){
- if (top.screen){
-
- (screen.pixelDepth)?this.pixelDepth=screen.pixelDepth:this.pixelDepth=null;
-
- (screen.colorDepth)?this.colorDepth=screen.colorDepth:this.colorDepth=null;
- if(screen.width&&screen.height){
- this.screenWidth=screen.width;
- this.screenHeight=screen.height;
- this.screenResolution=this.screenWidth+"x"+this.screenHeight;
- }else{
- this.screenWidth=null;
- this.screenHeight=null;
- this.screenResolution=null;
- }
- if(screen.availWidth&&screen.availHeight){
- this.availWidth=screen.availWidth;
- this.availHeight=screen.availHeight;
- this.availResolution=this.availWidth+"x"+this.availHeight;
- }else{
- this.availWidth=null;
- this.availHeight=null;
- this.availResolution=null;
- }
-
- if(this.screenWidth&&this.screenHeight&&this.colorDepth)this.Resolution=this
- ..screenWidth+"x"+this.screenHeight+"x"+this.colorDepth;
- else this.Resolution = null;
- }else{
- this.pixelDepth=null;
- this.colorDepth=null;
- this.availWidth=null;
- this.availHeight=null;
- this.availResolution=null;
- this.screenWidth=null;
- this.screenHeight=null;
- this.screenResolution=null;
- this.Resolution=null;
- }
- if(window.innerWidth)this.innerWidth=window.innerWidth;
- else{
- if(document.body){
- if(document.body.clientWidth)
- this.innerWidth=document.body.clientWidth;
- }else this.innerWidth=null;
- }
- if(window.innerHeight)this.innerHeight=window.innerHeight;
- else{
- if(document.body){
-
- if(document.body.clientHeight)this.innerHeight=document.body.clientHeight;
- } else this.innerHeight=null;
- }
-
- (this.innerWidth&&this.innerHeight)?this.innerResolution=this.innerWidth+"x"
- +this.innerHeight:this.innerResolution=null;
-
- (window.outerWidth)?this.outerWidth=window.outerWidth:this.outerWidth=null;
-
- (window.outerHeight)?this.outerHeight=window.outerHeight:this.outerHeight=nu
- ll;
- (this.outerWidth &&
- this.outerHeight)?this.outerResolution=this.outerWidth+"x"+this.outerHeight:
- this.outerResolution=null;
-
- (window.offscreenBuffering)?this.offscreenBuffering=window.offscreenBufferin
- g:this.offscreenBuffering=null;
- if(window.frameRate)this.frameRate=window.frameRate;
- else this.frameRate=null;
- }
- function Browser_getCookieVal(offset){
- var endstr=document.cookie.indexOf(";",offset);
- if(endstr==-1)endstr=document.cookie.length;
- return unescape(document.cookie.substring(offset,endstr));
- }
- function Browser_fixCookieDate(date){
- var base=new Date(0);
- var skew=base.getTime();
- if(skew>0)date.setTime(date.getTime()-skew);
- }
- function Browser_getCookie(name){
- var arg=name+"=";
- var alen=arg.length;
- var clen=document.cookie.length;
- var i=0;
- while(i<clen){
- var j=i+alen;
- if(document.cookie.substring(i,j)==arg)return this.getCookieVal(j);
- i=document.cookie.indexOf(" ",i)+1;
- if(i==0)break;
- }
- return null;
- }
- function Browser_setCookie(name,value,expires,path,domain,secure){
- document.cookie=name+"="+escape(value)+((expires)?";
- expires="+expires.toGMTString():"")+((path)?"; path="+path:"")+((domain)?";
- domain="+domain:"")+((secure)?"; secure":"");
- }
- function Browser_deleteCookie(name,path,domain){
- if(this.getCookie(name))document.cookie=name+"="+((path)?";
- path="+path:"")+((domain)?"; domain="+domain:"")+"; expires=Thu, 01-Jan-70
- 00:00:01 GMT";
- }
- function Browser_getHostName(){
- if(navigator.appName.lastIndexOf('Netscape')!=-1)
- if(navigator.javaEnabled()==1){
- window.onerror=null;
- hostAddress=java.net.InetAddress.getLocalHost();
- return(hostAddress.getHostName());
- }
- return null;
- }
-
-
- IV. HTML tags, FORMs, FRAMEs
-
- 1.┼±≥ⁿ ⌠εp∞α Γ Ωε≥εpεΘ ΣΓα ∞σφ■ Γ√ßεpα - ∩σpΓεσ πp≤∩∩α ≥εΓαpεΓ, Γ≥εpεσ -
- ±∩Φ±εΩ ≥εΓαpεΓ
- ┬ε∩pε± ΩαΩ ±Σσδα≥ⁿ ≈≥ε-ß√ Γε Γ≥εpε∞ ∞σφ■ Γ√⌡εΣΦδΦ ≥εδⁿΩε ≥εΓαp√ ΩεφΩpσ≥φεΘ
- πp≤∩∩√ ≥εΓαpεΓ ?
-
- >>From: "Michael A. Kangin" <mak@complife.net>
-
- ╧≡ΦΓσΣ≤ ±ε±≥≡ ∩αφφφ≤■ ∩≡επ≡α∞Ω≤. ╨ατßσ≡σ°ⁿ± ?
-
- -----------------------
- <html>
-
- <script>
- var tovar = new Array(4)
-
- tovar[1]= new Array(
- "├≡εß√",
- "┬σφΩΦ",
- "╩α≥α⌠αδΩΦ",
- "╬≥∩σΓαφΦ ",
- "╧α∞ ≥φΦΩΦ",
- "╩≡σ±≥√"
- )
-
- tovar[2]=new Array(
- "╩ε∞∩ⁿ■≥σ≡√ ßεδⁿ°Φσ",
- "╩ε∞∩ⁿ■≥σ≡√ ∞αδσφⁿΩΦσ",
- "┬Φφ≥≈σ±≥σ≡√",
- "╩α≡Ω≤δ ≥ε≡√"
- )
-
- tovar[3]=new Array(
- "╬Ωφα",
- "─Γσ≡Φ",
- "╤δεΓα",
- "╥α≡αΩαφ√",
- "╞≤ΩΦ",
- "╩δε∩√"
- )
-
- tovar[4]=new Array(
- "╪α∞∩≤φⁿ",
- "╩≡σ∞",
- "╠ατⁿ"
- )
-
- function update_s2()
- {
- n=document.f1.s1.selectedIndex + 1;
- document.f1.s2.length=tovar[n].length;
- for(i=0; i<tovar[n].length; i++) document.f1.s2[i].text = tovar[n][i];
- }
- </script>
-
- <body>
-
- <form name="f1">
-
- <table border=0 width=100%>
- <tr valign=top><td>
- ╘Φ≡∞α<br>
-
- <select name="s1" size=4 onChange="update_s2()">
- <option selected>┴σφτσφ≈≤Ω Φ ╩
- <option>IBM
- <option>Microsoft
- <option>╧╨εΩ≥σ≡ Φ πσ∞ßδ
- </select>
-
- </td>
- <td>
- ╥εΓα≡:<br>
-
- <select name="s2" size=7 width=200>
- <script>
- for(i=0; i<tovar[1].length; i++) document.writeln('<option>'+tovar[1][i]);
- </script>
- </select>
-
- </td></tr>
- </table>
- </form>
-
- </body>
- </html>
- -------------------------------------------------
-
- ╨αßε≥ασ≥ ΩαΩ ∞ΦφΦ∞≤∞ Γ MIE5 Φ Hσ≥±Ωα∩σ 4.08. ╒ε≥ ╠╚┼ ΩαΩ-≥ε ±≥≡αφφε
- ≡σαπΦ≡≤σ≥
- φα
- Φτ∞σφσφΦσ τφα≈σφΦΘ, ∩σ≡σΣσ≡πΦΓασ≥ Γ±σ ∩εδσ Γ√ßε≡α. ╠εµσ≥, ∩ε⌠ΦΩ±Φ≥ⁿ Φ ∞εµφε,
- φσ
- ≡ατßΦ≡αδ± .
-
- 2. ∞εµφε δΦ Γ√τ√Γα≥ⁿ Γα±ΩpΦ∩≥ ∩ε∞σ∙σφφ√Θ Γ εΣΦφ ⌠αΘδΦΩ (⌠pσΘ∞) Φτ Σp≤πΦ⌡
- ⌠pσΘ∞εΓ... σ±δΦ ∞εµφε, ≥ε ΩαΩ?
-
- >> From : Artem Babadzhanyants 2:5030/922 Sat 13 Nov 99 18:23
- ╥σΩ±≥ ±Ω≡Φ∩≥α ∩Φ°σ°ⁿ Γ ε≥Σσδⁿφε∞ ⌠αΘδσ, α φα ±≥≡αφΦ≈Ωσ ∩Φ°σ°ⁿ:
-
- <HTML>
- <SCRIPT LANGUAGE="JavaScript" SRC="b5bbs.js">
- </SCRIPT>
- <SCRIPT LANGUAGE="JavaScript" SRC="link.js">
- </SCRIPT>
- </HTML>
-
- ≥.σ ∞εΦ ±Ω≡Φ∩≥√ φα⌡εΣ ≥± Γ ⌠αΘδα⌡ b5bbs.js Φ link.js
-
-
- 3. ┼±≥ⁿ 2 ⌠pσΘ∞α ßαφφσp Φ ε±φεΓφεΘ, φαΣε τΣσδα≥ⁿ ≥αΩ ≈≥εß√ ∩pΦ ΩδΦΩσ φα
- Ωφε∩Ωy(pΦ±yφεΩ,±±√δΩy)Γ ΓpσΘ∞σ ± ßαφσpε∞ ⌠pσΘ∞ ταΩp√δ± Φ ε±≥αδ±
- ≥εδⁿΩε ε±φεΓφεΘ. ╧ε∞επΦ≥σ ∩δΦτ..
-
- >> From : Alexander Hritonenkov 2:5030/978.33 Sat 04 Mar 00
- 15:05
-
-
- <A HREF="..." TARGET="_parent">...</A>
- ΦδΦ
- <A HREF="..." TARGET="_top">...</A>
-
- 4. ┬ε≥ ≥αΩ ∩εδ≤≈α■≥± ╫└╤█
- >> From : Anton Agapov 2:5030/854.22 Mon 27 Mar 00
- 15:48
-
- <FORM NAME="clock">
- <INPUT NAME="face" TYPE="TEXT" VALUE="hh:mm:ss" SIZE=6>
- </FORM>
- <SCRIPT LANGUAGE="JavaScript">
- <!--
- updateClock();
-
- function updateClock() {
- var time = new Date();
- var hours = time.getHours();
- var minutes = time.getMinutes();
- var seconds = time.getSeconds();
- document.clock.face.value =
- ((hours < 10) ? '0' + hours : hours) +
- ':' + ((minutes < 10) ? '0' + minutes : minutes)
- +
- ':' + ((seconds < 10) ? '0' + seconds : seconds);
- setTimeout("updateClock()",1000);
- }
- //-->
- </SCRIPT>
- <p>
-
- 5.╩αΩ ±Σσδα≥ⁿ ±αßµ, ≈≥εß√ ∩ε±δσ φαµα≥Φ φα Ωφε∩Ω≤ "Submit" ∩εδ ⌠ε≡∞√
- ∩≡εΓσ≡ δΦ±ⁿ Γα-±Ω≡Φ∩≥ε∞, α ∩ε≥ε∞ ≥εδⁿΩε, σ±δΦ Γ±σ ⌠ε≡∞√ τα∩εδφσφ√ ≥αΩ
- ≥αΩ φαΣε, Σαφφ√σ ∩σ≡σΣαΓαδΦ±ⁿ ±σ≡Γσ≡≤ ?
-
- >> From : Vitaly Vasilchuk 2:5020/400 Fri 07 Apr 00
- 15:02
- ┬ html'σ, Γ ⌠ε≡∞σ, Ωφε∩Ωα Submit, Σεδµφα ß√≥ⁿ ε∩Φ±αφα ±δσΣ≤■∙Φ∞ εß≡ατε∞
- ---------------------------------
- <input type="button" value="╬≥∩≡αΓΦ≥ⁿ"
- onclick="ConfirmBox(this.form, '┬√ ΣσΘ±≥ΓΦ≥σδⁿφε ⌡ε≥Φ≥σ ε≥∩≡αΓΦ≥ⁿ
- τα∩≡ε±?')">
- ---------------------------------
-
- α Γε≥ ±Ω≡Φ∩≥
- ---------------------------------
- function ConfirmBox(f, message) {
- // ∩≡εΓσ≡Ωα ∩εδ Sum
- if (f.Sum.value=="0") {
- // Γ√ΓεΣΦ∞ ±εεß∙σφΦσ εß ε°ΦßΩσ
- alert('Hσεß⌡εΣΦ∞ε Γ√ß≡α≥ⁿ εΣφ≤ Φτ ταΣα≈.');
- // ΓετΓ≡α∙ασ∞ ⌠εΩ≤± φα ⌠ε≡∞σ Γ ²≥ε ∞σ±≥ε
- f.cb_MU.focus();
- return false;
- }
-
- // Γ√ΓεΣ τα∩≡ε±α
- if (confirm(message)) {
- // σ±δΦ ∩εδⁿτεΓα≥ⁿ ≥ε∩≈σ≥ "Yes" - ε≥∩≡αΓδ σ∞
- f.submit(); <-- ±α∞ ≥≡■Ω
- return true;
- }
- else
- return false;
- }
-
-
- 6.╩≥ε-φΦß≤Σⁿ τφασ≥, ΩαΩ ∩≡εΦπ≡α≥ⁿ wav ⌠αΘδ Γ Internet Explorere?
- (≥≡σß≤σ≥± τΓ≤Ω ∩≡Φ φαΓσΣσφΦΦ ∞√°Φ φα εß·σΩ≥)
-
- >> From : Raidillon Eaurouge 2:5020/400 Sun 01 Oct 00 02:00
-
- ╧≡εΓσ≡Φδ Γ win98, IE5.0 (5.00.2614.3500)...
- ╨αßε≥ασ≥!
-
- <sample runsInIE5_0="yes">
- <HTML>
- <BODY>
- <SCRIPT LANGUAGE="JavaScript">
- <!--
- var strOver = "1.wav";
- var strClick = "2.wav";
- var a = new Array("never", "say", "die");
-
- for (var i = 0; i < a.length; i++)
- document.writeln('<p><a href="#"'
- + ' onmouseover="soundIt(false)"'
- + ' onclick="soundIt(true)">'
- + a[i] + '</a></p>');
-
- function soundIt(cause)
- {
- sounder.src = (cause ? strClick : strOver);
- }
- //-->
- </SCRIPT>
- <bgsound id="sounder"/>
- </BODY>
- </HTML>
- </sample>
-
- >>From: Andrew Rousev
-
- ╚τ ClientGuide JS1.3:
-
- *JavaScript Methods for Controlling LiveAudio*
-
- LiveAudio provides the following major JavaScript controlling methods. For
- these methods to be available to JavaScript (and the web page), you must
- embed
- a LiveAudio console (any console will do, it can even be hidden) somewhere
- on
- your page.
-
- play({loop[TRUE, FALSE or an INT]}, '{url_to_sound}')
- pause()
- stop()
- StopAll()
- start_time({number of seconds})
- end_time({number of seconds})
- setvol({percentage number - without "%" sign})
- fade_to({volume percent to fade to, without the "%"})
- fade_from_to({volume % start fade}, {volume % end fade})
- start_at_beginning()
- stop_at_end()
-
- The following JavaScript state indication methods do not control the
- LiveAudio
- plug-in, but they give you information about the current state of the
- plug-in:
-
- IsReady
- IsPlaying
- IsPaused
- GetVolume
-
- ---------
- Using the LiveAudio LiveConnect Methods
- One example of using JavaScript to control a LiveAudio plug-in is to have
- JavaScript play a sound. In the following example, all of the HTML is needed
- to
- make the plug-in play a sound.
-
- <HTML><BODY>
- <EMBED SRC="sound1.wav" HIDDEN=TRUE>
- <A HREF="javascript:document.embeds[0].play(false)">Play the sound now!</A>
- </BODY></HTML>
-
-
-
- function Browser_getHostAddress(){
- if (navigator.appName.lastIndexOf('Netscape')!=-1)
- if(navigator.javaEnabled()==1){
- window.onerror=null;
- hostAddress=java.net.InetAddress.getLocalHost();
- return(hostAddress.getHostAddress());
- }
- return null;
- }
- var browser=new Browser();
-
-
- V. Dynamic HTML, LAYERs, DIVs, DOM, CSS
-
- 1. ╒ε≥σδε±ⁿ ß√ φσ ταßΦΓα≥ⁿ ≥²πΦ JavaScript-εΓ±ΩΦ∞Φ onMouseOver="..." Φ ≥.∩.,
- α ∩≡ε±≥ε ÷σ∩δ ≥ⁿ CSS Ω ΣεΩ≤∞σφ≥≤ Φ Γ±σ.
-
- From "Raidillon Eaurouge" <nero@iptelecom.net.ua> wrote in message
-
- <style>
- .umm {
- behavior: url('umm.htc')
- }
- </style>
-
- <component>
- <implements>
- <attach event="onmouseover" onevent="over()" />
- <attach event="onmouseout" onevent="out()" />
- <attach event="onclick" onevent="clika()" />
- </implements>
- </component>
-
- > └ σ±δΦ ≤µσ ∩≡ε∩Φ±αφα Ω≤≈α ≈α±≥φ√⌡ ±δ≤≈ασΓ onmouseover() Φ onclick(), φε
- ⌡ε≈σ≥±
- > Ωε Γ±σ∞ ±≡ατ≤ ΣεßαΓΦ≥ⁿ Φ onfocus(), ß≤Σσ≥ δΦ ≡αßε≥α≥ⁿ ≥αΩα Ωεφ±≥≡≤Ω÷Φ :
- > <component>
- > <implements>
- > <attach event="onfocus" onevent="this.blur()" />
- > </implements>
-
- ┴≤Σσ≥ ≡αßε≥α≥ⁿ, φε Γ Ωε∞∩εφσφ≥α⌡ φ≤µφε Φ±∩εδⁿτεΓα≥ⁿ φσ "this",
- α "element" Σδ εß≡α∙σφΦ Ω ±ΓεΦ∞ ±ΓεΘ±≥Γα∞ Φ ∞σ≥εΣα∞ -- element.blur().
-
-
- ∩ε≈Φ≥α≥ⁿ ∞εµφε Γ MSDN - DHTML Behaviors in Internet Explorer 5
-