This page has been robot translated, sorry for typos if any. Original content here.

one Is it possible to gif-ka in IE loaded, and in NN not. If possible, how to do it.
2 I want to make the first page of the site beautiful so that there is a picture, and its different parts are connected with HTML files. and when you hover on a related area in the center appeared a certain pattern. How do you tell me?
3 the menu is made using Java (onmouseover and onmouseout), the problem is that the pictures that need to get into onmouseover are loaded only when you point mice at them, but you need to make them load with the page
four Help make a running line for Netscape on a java script.
five I urgently need java: when hovering over one heading (picture), I see two new pictures that are in different places, i.e. on the one hand the picture, and in another place the description of this picture.
6 Tell me how to change the browser window title for Netscape in JavaScript? document.title for some reason does not work for him
7 The script opens the popup and the focus is transferred to him, how to do the opposite?
eight : ^ D
9 Is there a script that determines the size of the user’s viewer (well, there are 640x480, etc.)?
ten How to preload images (gifs)
eleven : as soon as the user clicks the 'Back' button in the browser, he again goes to index.htm, which immediately sends it back. It turns out that the page does not allow the user to leave it. How to deal with it?
12 How to make the page open not with the given width and height, but into the full window?
13 Use different pictures for different resolutions. Find out the width of the screen:
14 There is a script with which to do pop-up. Those. the user closed the browser window, after which a new specified window appears. Is it possible to set the time after which the second window should open? Can I open several pop-ups at different times?
15 What kind of script is needed so that he recognizes the expansion of the screen and then, depending on these values, transferred certain values ​​to the frame size parameters?
sixteen Need a script (preferably with explanations) for pricing
17 How to make it so that "BOTTOM" sat just below despite the window dimensions under "BOTTOM" I mean, for example, the following text:
18 And how to set the order of loading pictures, and it turns out that search engine banners climb ahead of my menu?
nineteen How can you make, so that you direct on some drawing, for example, on the chela standing on your head and that it starts spinning.
20 How to use JavaScript to "force" a window to open in full screen, regardless of the resolution?
21 How can I cache a picture using javascript?
22 How from a Java applet to change the text on the page containing it? Maybe somehow using javascript or vbscript? The place on the page where the text should change is known, but in advance it is not known what to change it?
23 When you hover the cursor, the picture 1.gif changes to the picture 2.gif Mouse clicks on the picture (1.gif or 2.gif) go to the hyperlink to the page
24 Need a script for the "killing" of the frame and the consequences of its closure.
25 I have a website. Website created with frames. What should I do if I went to one of the villages without a frame? Is there any javascript that flips to the main page with this page?
26 Site with frames, let's say 3 frames. How to make that when you click on a link, the contents of not one frame changed, but 2-3?


Question:
Is it possible to gif-ka in IE loaded, and in NN not. If possible, how to do it.
-------------------------------------------------- ---------------------------------
Answer:
Well, you can simply not include it in the page if the browser is Netscape:
  <script>
 browser_name = navigator.appName;
 browser_version = parseFloat (navigator.appVersion);

 if (browser_name == "Netscape") {roll = 'true';}

 if (roll == 'false') {
 document.write ("<img src = 'xxx.gif'>");
 }
 </ script> 

Valery Papushin replied
Put in the link to the gif-ku backslash, IE will load, and NN will leave empty space.

The answer was sent by DoctorGenius service
Yes it is possible. On the site page, you need to put a script that, depending on the browser, will load a certain html page.
1.htm for Explorer
2.htm for Netscape
3.htm for other browsers.
 <script language = "JavaScript">
 <! -
 if (navigator.appName == "Netscape") window.location.href = "1.htm";
 else if (navigator.appName == "Microsoft Internet Explorer")
  window.location.href = "2.htm";
 else window.location.href = "3.htm";
 // ->
 </ script> 

The answer was sent by Komlev Mikhail
Write the script in VBScript (because NN does not support pictures of it there) But I don’t know how it will be in VBScript, an analogue in JavaScript:
 <script>
 document.write ("<IMG SRC = gif.jpg ALT = gif1>")
 </ script> 
or through document.images you just have to learn VBScript :)


Question:
I want to make the first page of the site beautiful so that there is a picture, and its different parts are connected with HTML files. and when you hover on a related area in the center appeared a certain pattern. How do you tell me?
-------------------------------------------------- ---------------------------------
Answer:
This is done very simply in the program "FrontPage". On the "Image Toolbar" panel, click the button with a rectangle, circle or broken line (it all depends on what object you want to choose for drawing a link on it - rectangular, round, respectively, or you want to define the borders yourself). Select in the picture the area to which the link should be entered. Pops up the window. In the window that is signed "URL:" write the link where you want to go. Described confusingly, but if you try in practice, you will understand right away.

The answer was sent by Komlev Mikhail
Through MAP.
<MAP name = Map0_about> <AREA coords = 10,0,122,14 href = "/ click? Http://www.site.ru/html/about/about_main.htm" shape = RECT target = _top> <AREA coords = 10,16,128,28 href = "/ click? Http://www.site.ru/html/about/about_finances.htm" shape = RECT target = _top> <AREA coords = 131,16,203,28 href = "/ click ? http: //www.site.ru/html/about/about_press.htm "shape = RECT target = _top> </ MAP>

The answer was sent by Sasha Cutter
We'll have to do the composite: insert the main one into the middle (so beautiful), and the rest where you want ... When you hover over any of the pictures - the main one changes when you remove the mouse from the picture - the main one becomes the same - I think you wanted. You need to use this script:
 <script language = "JavaScript">
 if (navigator.appVersion.indexOf ("2.")! = -1)
 {check = false;  }

 if ((navigator.appVersion.indexOf ("3.")! = -1) &&
  (navigator.appName.indexOf ("Explorer")! = -1))

 {check = false;  }
 else {check = true;  }

 im1ch = new Image ();
 im1ch.src = "1.gif";
 im1chon = new Image ();
 im1chon.src = "2.gif";

 function imon (name)
 {document ["change"]. src = eval (name + "chon.src");  }

 function imoff (name) {document ["change"]. src = eval (name + "ch.src");  }

 NN3 = true;

 function on (name)
 {if (check == true) {imon (name);}}

 function off (name)
 {if (check == true) {imoff (name);}}
 </ script>
Where does the browser version check first (will the script work), then the description of the picture and the one that replaces it (denoted im1 and im1chon), and then the replacement script itself ... You can insert pictures as many times as necessary (example im2, im3, .. imn ...), but you need to call them like this ...
<img src = "main.gif" NAME = "change">
<a href = "/ click? http: // _ transition, as requested_" onMouseOver = "on ('im1')"; onMouseOut = "off ('im1')">
<img src = "1.gif" NAME = "im1" BORDER = "0"> </a>
The first line is the initial image, with the name change (see the script), then complement. images (you can do a lot by analogy) ... That's all :)


Question:
the menu is made using Java (onmouseover and onmouseout), the problem is that the pictures that need to get into onmouseover are loaded only when you point mice at them, but you need to make them load with the page
-------------------------------------------------- ---------------------------------
Answer:
By the fact that on channels with a narrow bandwidth, the following picture is obtained: I move the mice to the menu item, and the picture that should fall out in the onmouseover, climbs out only in 3-5 seconds.

Reply sent by Andrey R. Sirvutis
Place the following script between the tags <head> .. </ head>
 <script language = "JavaScript">
 <! -
 function MM_preloadImages () {//v3.0
  var d = document;  if (d.images) {if (! d.MM_p) d.MM_p = new Array ();
  var i, j = d.MM_p.length, a = MM_preloadImages.arguments;  for (i = 0; i
  if (a [i] .indexOf ("#")! = 0) {d.MM_p [j] = new Image;  d.MM_p [j ++]. src = a [i];}}
 }
 // ->
 </ script>
And then a construction of approximately the same type:
<BODY onLoad = "MM_preloadImages ('pic1.gif', 'pic2.jpg')">
Everything. Your pictures will be loaded in advance and when you hover the cursor on the object and, therefore, onMouseOver will be displayed immediately. The only point is that the visitor, in principle, must wait for the page and pictures to complete loading. Otherwise, the situation described in the question will repeat.


Question:
Help make a running line for Netscape on a java script.
-------------------------------------------------- ---------------------------------
Answer:
Here is a script that works in Netscape Communicator 4.51 and in Internet Explorer 4 In addition, you can insert links into this ticker.
  <script language = "JavaScript1.2"> / *
 Cross browser marquee script-
 ї Dynamic Drive (www.dynamicdrive.com)
 For full source code, installation instructions,
 100's more DHTML scripts, and Terms Of
 Use, visit dynamicdrive.com
 * /
 // Specify the marquee's width (in pixels)
 var marqueewidth = 330
 // Specify the marquee's height (in pixels, pertains only to NS)
 var marqueeheight = 20
 // Specify the marquee's scroll speed (larger is faster)
 var speed = 6
 // Specify the marquee contents
 var marqueecontents = '<font face = "Arial"> <strong> <big> Running line.  You can also <a href="/click?http://"> insert links. </a> Your text ....... </ big> </ strong> </ font> '
 if (document.all)
 document.write ('<marquee scrollAmount =' + speed + '
  style = "width: '+ marqueewidth +'"> '+ marqueecontents +'   ')
 function regenerate () {
 window.location.reload ()
 }
 function regenerate2 () {
 if (document.layers) {
 setTimeout ("window.onresize = regenerate", 450)
 intializemarquee ()
 }
 }
 function intializemarquee () {

 document.cmarquee01.document.cmarquee02.document.write (
  '<nobr>' + marqueecontents + '</ nobr>')
 document.cmarquee01.document.cmarquee02.document.close ()
 thelength = document.cmarquee01.document.cmarquee02.document.width
 scrollit ()
 }
 function scrollit () {
 if (document.cmarquee01.document.cmarquee02.left> = thelength * (- 1)) {
 document.cmarquee01.document.cmarquee02.left- = speed
 setTimeout ("scrollit ()", 100)
 }
 else {
 document.cmarquee01.document.cmarquee02.left = marqueewidth
 scrollit ()
 }
 }
 window.onload = regenerate2
 </ script>
 <ilayer width = & {marqueewidth};  height = & {marqueeheight};  name = "cmarquee01">
 <layer name = "cmarquee02"> </ layer>
 </ ilayer>



Question:
I urgently need java: when hovering over one heading (picture), I see two new pictures that are in different places, i.e. on the one hand the picture, and in another place the description of this picture.
-------------------------------------------------- ---------------------------------
Answer:
Here is the script:
 <script language = "JavaScript">
 if (navigator.appVersion.indexOf ("2.")! = -1)
 {check = false;  }
 if ((navigator.appVersion.indexOf ("3.")! = -1) &&
  (navigator.appName.indexOf ("Explorer")! = -1))
 {check = false;  }
 else {check = true;  }

 im1ch = new Image ();
 im1ch.src = "1.jpg";
 im1chon = new Image ();
 im1chon.src = "2.jpg";
 im1 = new Image ();
 im1.src = "1_1.jpg";
 im1on = new Image ();
 im1on.src = "1_2.jpg";
 function imon (name)
 {document ["change"]. src = eval (name + "chon.src");  }
 document [name] .src = eval (name + "on.src");
 function imoff (name) {document ["change"]. src = eval (name + "ch.src");  }
 document [name] .src = eval (name + ".src");
 NN3 = true;

 function on (name)
 {if (check == true) {imon (name);}}

 function off (name)
 {if (check == true) {imoff (name);}}
 </ script>
And here is the challenge:
<a href = "/ click? http: // !!!" onMouseOver = "on ('im1')"; onMouseOut = "off ('im1')">
<img src = "1.jpg" NAME = "im1" BORDER = "0"> </a> <br> <img "1_1.jpg" NAME = "change">



Question:
Tell me how to change the browser window title for Netscape in JavaScript? document.title for some reason does not work for him
-------------------------------------------------- ---------------------------------
Answer:
Most likely nothing, because the document.title in NN is read-only. You can also try:
 <Html>
 <HEAD>
 <title> ttt </ title>
 </ Head>
 <BODY>
 <form>
 <script>
 function changeTitle (newTitle)
 {
  document.write ("<title>");
  document.write (newTitle);
  document.write ("</ title>");
 }
 </ script>
 <input type = "text" name = "txtTitle">
 <input type = "submit" value = "Change title"
 onClick = "changeTitle (document.forms [0] .txtTitle.value)">
 </ form>
 </ Body>
 </ Html> 
but this design does not work correctly. There are no other ways.


Question:
The script opens the popup and the focus is transferred to him, how to do the opposite?
-------------------------------------------------- ---------------------------------
Answer:
  <Script Language = "JavaScript">
 Artel = window.open ("Frame2.htm", "Artel",
 "Width = 500, Height = 160, Toolbar = 0, Location = 0",
 "Status = 0, Menubar = 0, Scrollbars = 0, Resizable = 0");
 //
 focus ();
 </ Script>



Question:
: ^ D
-------------------------------------------------- ---------------------------------
Answer:
: ^ D


Question:
Is there a script that determines the size of the user’s viewer (well, there are 640x480, etc.)?
-------------------------------------------------- ---------------------------------
Answer:
 <script language = "JavaScript">
 var height = 0;
 var width = 0;

 if (self.screen) {// for NN4 and IE4
  width = screen.width
  height = screen.height
 }
 else if (self.java) {// for NN3 with enabled Java
  var jkit = java.awt.Toolkit.getDefaultToolkit ();
  var scrsize = jkit.getScreenSize ();
  width = scrsize.width;
  height = scrsize.height;
 }
 </ script>
 </ head>
 <body>
 <script language = "JavaScript">
 <! -
 if (width> 0 && height> 0) {
  document.writeln ('Your permission:', width, 'x', height)
 } else {
  document.writeln ('I do not know your permission \\ me')
 }
 // ->
 </ script>

The answer was sent by Litvinov Roman
The script, which in accordance with the screen resolution of the user sends to the appropriate page!
 <head>
 <script language = "JavaScript">
 <! -
 var height = 0;
 var width = 0;

 if (self.screen) {// for NN4 and IE4
 width = screen.width
 height = screen.height
 } else if (self.java) {// for NN3 with enabled Java
 var jkit = java.awt.Toolkit.getDefaultToolkit ();
 var scrsize = jkit.getScreenSize ();
 width = scrsize.width;
 height = scrsize.height;
  }
 // ->
 </ script>
 </ head>
 <body>
 <script language = "JavaScript">
 <! -
 if (width == 800 && height == 600) {
  location.href = "800x600.htm"}
 else if (width == 640 && height == 480) {
  location.href = "640x480.htm"}
 else {location.href = "unknown.htm"}
 // ->
 </ script>
 </ body>



Question:
How to preload images (gifs)
-------------------------------------------------- ---------------------------------
Answer:
and then, with OnMouseOver, to do a simultaneous replacement of the image and the status bar, and for OnMouseAut - to restore the image (status line)? This is done using function — this I know. And the value of the status bar changes for me (window.status = document.title is understandable). It is not clear only with pictures.

The answer was sent by DoctorGenius service
Here is the script that will replace the image and the inscription in the status bar when you hover the mouse. If the mouse is removed, everything will return as it was.
Place this part of the script between the tags <HEAD> ... </ HEAD>
 <script language = "javascript1.1">
 <! -
 firstimage = new Image ()
 firstimage.src = "p1.gif"
 secondimage = new Image ()
 secondimage.src = "p2.gif"
 // ->
 </ script>
 <script>
 <! -
 function filter (imagename, objectsrc) {
 if (document.images)
 document.images [imagename] .src = eval (objectsrc + ". src")
 }
 // ->
 </ script>
Place this part of the script between <BODY> ... </ BODY>
<a href = "/ click? http: //" onmouseover = "filter ('a', 'secondimage'); window.status = 'Description of the link in status bar'; return true;" onmouseout = "filter ('a', 'firstimage'); window.status = ''; return true;">
<img src = "p1.gif" name = "a" border = 0> </a>


Question:
: as soon as the user clicks the 'Back' button in the browser, he again goes to index.htm, which immediately sends it back. It turns out that the page does not allow the user to leave it. How to deal with it?
-------------------------------------------------- ---------------------------------
Answer:
My index.htm page looks like this:
 
  <script> if (browser == InternetExplorer) document.location.href = "subpage_IE.htm";
 
  if (browser == NetscapeNavigator) document.location.href = "subpage_NN.htm";
 
  document.location.href = "pod_all_all_ostal_browsers.htm";
 
  </ script>
 
The script works great: as soon as the user under IE comes to the page, he immediately gets on the "page_And_IE.htm"

Reply sent by YURIK
Make a separate login button. For example: A little to finish your script.
 <script>
  function vhod () {
  if (browser == InternetExplorer) document.location.href = "subpage_IE.htm";
 if (browser == NetscapeNavigator) document.location.href = "subpage_NN.htm";
 document.location.href = "pod_all_all_ostal_browsers.htm";
 }
 </ script>
 <A HREF="#" onClick="vhod()"> Sign in </a>
So you will have another page under the banners and counters.

Reply sent by Andrej R. Sirvutis
As far as I know, pressing the "Back / Back" button in Explorer, for example, is equivalent to clicking on the javascript: history.back () link
Try to beat this transition. Or use onUnload (), but then you should take into account what will work in any case, even when clicking on another link from the current page.


Question:
How to make the page open not with the given width and height, but into the full window?
-------------------------------------------------- ---------------------------------
Answer:
There is the following script: 001 = window.open ("file: /// c: /s/sb_bb001.htm", "001", "left = 0, top = 0, width = 730, height = 480, scrollbars = yes , resizeable = yes ");

The answer was sent by Alexander Tsegelnikov
Instead of values, write: for width = <script> screen.width </ script>, for height = <script> screen.height </ script>. It should work like a horse! :)


Question:
Use different pictures for different resolutions. Find out the width of the screen:
-------------------------------------------------- ---------------------------------
Answer:
 <script>
 x = screen.width;  // here, you generally need to calculate the width of the window -
 // minus the width of the scrollbar, since  the window may not be completely
 // deployed ...
 if (x> 750) document.write ('<img src = "1024.gif width ="' + x + '">');
 // although it is not rulez to stretch or compress the picture ...
 else document.write ('<img src = "800.gif width ="' + x + '">');
 </ script>
two pictures because stretching 750 px to 1000 or compressing 1000 to 640 is also not beautiful. Yes, and generally squeeze / stretch - ugly


Question:
There is a script with which to do pop-up. Those. the user closed the browser window, after which a new specified window appears. Is it possible to set the time after which the second window should open? Can I open several pop-ups at different times?
-------------------------------------------------- ---------------------------------
Answer:
Reply sent by Rustem Samatov
setTimeout (popup (), 200); // execute the function popup (); with a delay of 200 milliseconds. i.e. by unLoad = setTimeout (.... and everything drives :) but it is a very bad tone


Question:
What kind of script is needed so that he recognizes the expansion of the screen and then, depending on these values, transferred certain values ​​to the frame size parameters?
-------------------------------------------------- ---------------------------------
Answer:
 Use this script.
 <script language = "JavaScript">
 <! -
 if (self.screen) {
 width = screen.width
 height = screen.height
 }
 else if (self.java) {
 var jkit = java.awt.Toolkit.getDefaultToolkit ();
 var scrsize = jkit.getScreenSize ();
 width = scrsize.width;
 height = scrsize.height;
 } else {
 width = height = 'x'
 }
 if (width == 640)
 {document.write ('<FRAMESET cols = 20%, 80%> <FRAME src = "menu.htm">
 <FRAME name = display src = "firstpage.htm"> </ FRAMESET> ');  }
 else if (width == 800)
 {document.write ('<FRAMESET cols = 50%, 50%> <FRAME src = "menu.htm">
 <FRAME name = display src = "firstpage.htm"> </ FRAMESET> ');  }
 else if (width == 1024)
 {document.write ('<FRAMESET cols = 10%, 90%> <FRAME src = "menu.htm">
 <FRAME name = display src = "firstpage.htm"> </ FRAMESET> ');  }
 else if (width == 1280)
 {document.write ('<FRAMESET cols = 30%, 70%> <FRAME src = "menu.htm">
 <FRAME name = display src = "firstpage.htm"> </ FRAMESET> ');  }
 else {document.write ('<FRAMESET cols = 40%, 60%> <FRAME src = "menu.htm">
 <FRAME name = display src = "firstpage.htm"> </ FRAMESET> ');  }
 // ->
 </ script>



Question:
Need a script (preferably with explanations) for pricing
-------------------------------------------------- ---------------------------------
Answer:
  Create a form with drop-down menus.
 <form name = "choisecomp" style = "padding: 0; margin: 0; border: 0">
 <select name = "MB" onChange = "javascript: _calculate ()">
 <option value = "0" selected> none </ option>
 <option value = "100"> MB Gygabyte PII ($ 100) </ option>
 <option value = "200"> MB Gygabyte PIII ($ 200) </ option>
 </ select> <BR>
 <select name = "Processor" onChange = ".........
 ...... </ select> <BR>
 <select name = "RAM" onChange = ".........
 ...... </ select> <BR>
 ............................
 <input type = "text" name = "summarn">
 </ form>

 and the _calculate () function which will count.

 function _calculate () {
 var comp = new Array ("MB", "Processor", "RAM", .........);
 var summa = 0;
 for (i = 0; i <comp.lenght; i ++) {
 if (document.choisecomp.comp [i] .selected) {
 summa = summa + document.choisecomp.comp [i] .value;
 }
 }
 document.choisecomp.summarn.value = summa;
 }



Question:
How to make it so that "BOTTOM" sat just below despite the window dimensions under "BOTTOM" I mean, for example, the following text:
-------------------------------------------------- ---------------------------------
Answer:
I can offer a javascript option if it’s appropriate use%)! fit it between <head> and </ head>
  <style>
  #divBottom {position: absolute;  font-family: arial, helvetica;
  height: 20;  width: 100;  font-size: 12pt;  font-weight: bold}
  </ style>
  <script language = "JavaScript1.2">
  var gright = 220 // indents right and bottom
  var gbottom = 40
  var n = (document.layers)?  1: 0;
  var ie = (document.all)?  1: 0;

  function makeObj (obj, nest) {
  nest = (! nest)?  '': 'document.' + nest + '.'
  this.css = (n)?  eval (nest + 'document.' + obj): eval (obj + '. style')
  this.moveIt = b_moveIt;
  }
  function b_moveIt (x, y) {
  this.x = x;  this.y = y
  this.css.left = this.x
  this.css.top = this.y
  }
  var pageWidth, pageHeight
  function Init () {
  oTest = new makeObj ('divBottom')
  pageWidth = (ie)? document.body.offsetWidth-4: innerWidth;
  pageHeight = (ie)? document.body.offsetHeight-2: innerHeight;
  checkIt ()
  onresize = resized
  if (ie) window.onscroll = checkIt;
  }
  function checkIt () {
  if (ie) oTest.moveIt (document.body.scrollLeft + pageWidth-gright,
  document.body.scrollTop + pageHeight-gbottom)
  else if (n) {
  oTest.moveIt (window.pageXOffset + pageWidth-gright,
  window.pageYOffset + pageHeight-gbottom)
  setTimeout ('checkIt ()', 20)
  }
  }
  function resized () {
  pageWidth = (ie)? document.body.offsetWidth-4: innerWidth;
  pageHeight = (ie)? document.body.offsetHeight-2: innerHeight;
  if (ie) checkIt ()
  }
  onload = Init;
  if (n || ie) document.write ('<div id = "divBottom"> So who's the site there
 did? </ div> ')
  </ script>
after that, the head should close, like everything!


Question:
And how to set the order of loading pictures, and it turns out that search engine banners climb ahead of my menu?
-------------------------------------------------- ---------------------------------
Answer:
Use the Preload script (code below). It will load pictures when called, and then, when requesting pictures, it will show them, and the banners will be loaded in the usual way.
  <head> <script language = "JavaScript"> <! -
 function MM_preloadImages () {//v3.0
  var d = document;  if (d.images) {if (! d.MM_p) d.MM_p = new Array ();
  var i, j = d.MM_p.length, a = MM_preloadImages.arguments;  for (i = 0; i  </ script>
 </ Head>
 <BODY onLoad = "MM_preloadImages ('pic1.gif', 'pic2.jpg')">
 ...
 <body>
I hope it is clear. If it does not work, then try to put this script on the page from where the transition to the page with banners is carried out.


Question:
How can you make, so that you direct on some drawing, for example, on the chela standing on your head and that it starts spinning.
-------------------------------------------------- ---------------------------------
Answer:
The simplest thing is to use an animated picture (anim.gif) and a static one with the first frame animated (stat.gif).
Let the image be described as <img src = "stat.gif" onmouseover = "JustDoIt (this, 'anim.gif')" onmouseout = "JustDoIt (this, 'stat.gif')">
and the function looks like:
function JustDoIt (obj, src) {obj.src = src; }
But this is without pre-looting, i.e. when you hover over the image, the request will be animated on the server, which will slow down the work and blur the impression.
Pre-loader carried out trail. code, cat. is inserted in front of <body>:
 <script>
 var cash = 0;
 if (document.images) {
  var ImgList = new Array ();

  ImgList [0] = new Image ();
  ImgList [0] .src = "stat.gif";

  ImgList [1] = new Image ();
  ImgList [1] .src = "anim.gif";

  cash = 1;
 }
 </ script>
Checking for the presence of document.images cuts out the cases of using old browsers, a cat. do not support the Images object (IE3 for example)
Then our function will look like a trace. in the following way:
  function JustDoIt (obj, src, x)
 {if (cash == 1) obj.src = ImgList [x] .src;
  else obj.src = src;
 } 
And the description of the picture changes to
<img src = "stat.gif" onmouseover = "JustDoIt (this, 'anim.gif', 1)" onmouseout = "JustDoIt (this, 'stat.gif', 0)">


Question:
How to use JavaScript to "force" a window to open in full screen, regardless of the resolution?
-------------------------------------------------- ---------------------------------
Answer:
So the system is simple.
<script language = "JavaScript"> window.moveTo (0,0);
window.resizeTo (screen.availWidth, screen.availHeight)
</ script>
And that's it! Insert yourself this is somewhere in the page


Question:
How can I cache a picture using javascript?
-------------------------------------------------- ---------------------------------
Answer:
If I correctly understood the task. Something like
if (document.images) {
var ImgList = new Array ();
ImgList [0] = new Image ();
ImgList [0] .src = "stat.gif";
ImgList [1] = new Image ();
ImgList [1] .src = "anim.gif";
}
and then apply not by the name of the desired image, but the assignment to do as
obj.src = ImgList [x] .src;


Question:
How from a Java applet to change the text on the page containing it? Maybe somehow using javascript or vbscript? The place on the page where the text should change is known, but in advance it is not known what to change it?
-------------------------------------------------- ---------------------------------
Answer:
Answer from Andrei.
Write on the page in the place where the text will be inserted, the following:
<script language = "javascript" src = "myscript.js"> </ script>
Create a file myscript.js and write into it the necessary text, which can then be changed:
document.write ("Text");
You can create several functions with different texts, and then script to call different ones with ye; ysvb texts


Question:
When you hover the cursor, the picture 1.gif changes to the picture 2.gif Mouse clicks on the picture (1.gif or 2.gif) go to the hyperlink to the page
-------------------------------------------------- ---------------------------------
Answer:
Generally speaking, you can do a little differently. When you hover at 1.gif the picture changes to 2.gif And then, when you click the mouse, the hyperlink is triggered. When the mouse leaves the drawing, the image is restored (this can and should not be done, if not required).
 <HTML> <HEAD>
 <script language = "JavaScript">
 <! -
 function MM_swapImgRestore () {//v3.0
  var i, x, a = document.MM_sr;  for (i = 0; a && i <a.length && (x = a [i]) && x.oSrc; i ++)
 x.src = x.oSrc;
 }
 function MM_preloadImages () {//v3.0
  var d = document;  if (d.images) {if (! d.MM_p) d.MM_p = new Array ();
  var i, j = d.MM_p.length, a = MM_preloadImages.arguments;  for (i = 0; i <a.length; i ++)
  if (a [i] .indexOf ("#")! = 0) {d.MM_p [j] = new Image;  d.MM_p [j ++]. src = a [i];}}
 }
 function MM_findObj (n, d) {//v3.0
  var p, i, x;  if (! d) d = document;  if ((p = n.indexOf ("?"))> 0 && parent.frames.length) {
  d = parent.frames [n.substring (p + 1)]. document;  n = n.substring (0, p);}
  if (! (x = d [n]) && d.all) x = d.all [n];  for (i = 0;! x && i <d.forms.length; i ++)
 x = d.forms [i] [n];
  for (i = 0;! x && d.layers && i <d.layers.length; i ++)
 x = MM_findObj (n, d.layers [i] .document);  return x;
 }
 function MM_swapImage () {//v3.0
  var i, j = 0, x, a = MM_swapImage.arguments;  document.MM_sr = new Array;
 for (i = 0; i <(a.length-2); i + = 3)
  if ((x = MM_findObj (a [i]))! = null) {document.MM_sr [j ++] = x;  if (! x.oSrc)
 x.oSrc = x.src;  x.src = a [i + 2];}
 }
 // -> </ script> </ HEAD> <BODY onLoad = "MM_preloadImages ('1.gif', '2.gif')">
 <P ALIGN = "CENTER">
 <img name = "Image1" alt = "Text" border = "0" src = "1.gif"
 onMouseOut = "MM_swapImgRestore ()"
 onMouseOver = "MM_swapImage ('Image1', '', '2.gif', 1)">
 </ P> </ bodi> </ ht>
The answer is from Shico.
Here is the simplest design without preloading and everything else. It works very well, only make the pictures with less weight.
<a href="xlam.htm"> <img src = "xlam1.gif" WIDTH = "120" HEIGHT = "24" alt = "XLAM" border = "0" onMouseover = "this.src = 'xlam2.gif '"onMouseout =" this.src =' xlam1.gif '"> </a>
Everywhere everything works the same and no extra features.


Question:
Need a script for the "killing" of the frame and the consequences of its closure.
-------------------------------------------------- ---------------------------------
Answer:
The meaning is:
There is a page, the contents of which I can not change (its code below). She loads the page of my site http://mysite.ru into the window. When you close a window or load another link over the frame (_top), a new window pops up with ads. Here's how to get rid of it?

Answer from Andrej R. Sirvutis.
 <script>
 if (parent.frames [0]) {
 top.location.href = "/click?http://mysite.ru";
 }
 </ script> 
This script will "kill" the frame and open your site in this window. True, the window with advertising may still appear, because In the calling file, a script is registered for opening a new window when unloading. Without its change it can not turn out.

Answer 2 If you need to kill a frame, then here it is:
 <script language = "JavaScript" type = "text / javascript">
 setTimeout ("changePage ()", 3000);

 function changePage () {
 if (self.parent.frames.length! = 0)
 self.parent.location = document.location;
 }
 </ script>
By the way, the code from Gordon McComb.


Question:
I have a website. Website created with frames. What should I do if I went to one of the villages without a frame? Is there any javascript that flips to the main page with this page?
-------------------------------------------------- ---------------------------------
Answer:
I offer a very simple script that should be placed in the HEAD section or, in any case, before the BODY section. Suppose you have two identical horizontal frames. The file 1.htm (some menu) is loaded into the top one, and 2.htm - into the bottom one. Put the following script at the beginning of the 2.htm file:
 <script>
 if (top.frames.length == 0) {
 document.write ("" <frame name = 'q1' src = '#'> "+
 "<frame name = 'q2' src = '#'>" +
 "</ frameset>")
 top.frames [0] .location.href = '1.htm'
 top.frames [1] .location.href = '2.htm'
 }
 </ script>
The first step is to check if there are any frames at the very beginning. If it is already there, then the contents of the current file (2.htm) are loaded. If there are no frames initially, they are immediately drawn. And after a moment, it is indicated which files are loaded into them.
As indices of the frames frames [] you can specify explicit frame names frames ['q1'], frames ['q2']. Well, for the first frame you can immediately enter the source <frame name = 'q1' src = '1.htm'>, it does not matter.

Answer from Andrej R. Sirvutis.
 <script language = "JavaScript">
 if (self.parent.frames.length == 0)
 self.parent.location = "index_main.htm";
 </ script> 
If the current page is not loaded into a frame, the page index_main.htm is called. Place between <head> and </ head>.

The answer is from Victor.
This script when opening the page on which it is located in full screen will display the text (when loading this page in a frame, this text will of course be absent):
Better to watch with the control frame
<SCRIPT LANGUAGE = "JavaScript"> <! - if (self.parent.frames.length == 0) document.writeln ("It’s better to look at <A HREF = \\" index.htm \\ "> frame manager < / A> "); // -> </ SCRIPT>


Question:
Site with frames, let's say 3 frames. How to make that when you click on a link, the contents of not one frame changed, but 2-3?
-------------------------------------------------- ---------------------------------
Answer:
Write a java script.
on the buttons:
 onClick = "javascript: _change (_your reference number_)" //e.e.  on the first button - 1, on the second - 2, ... // when you click on the 1st button, all defined // frames in the script will change the prefix to linkX_1.htm, // if you click on the second, linkX_2.htm and t .d  function _change (numLink) {linkArray1 = new Array ("link1_1.htm", "link1_2.htm", ....);  linkArray2 = new Array ("link2_1.htm", "link2_2.htm", ....);  // and so on by the number of frames, where link1_1 is the first already // modified link in the 1st frame.  name_of_frame1.location = eval ('http://mysite.com/' + linkArray1 [numLink]);  name_of_frame2.location = eval ('http://mysite.com/' + linkArray2 [numLink]);  // again by the number of editable frames} 

Answer from Andrej R. Sirvutis.
Use onClick event handling.
<a target="frame2" href="page2.htm" onclick="parent.frame3.location.href='page3.htm'"> Link </a>
This design will allow to load the page2.htm page into the frame2 frame and the page3.htm page into the frame3 frame simultaneously.