File: utilities.js

package info (click to toggle)
torcs 1.3.7%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 800,472 kB
  • sloc: cpp: 82,033; xml: 69,371; ansic: 9,818; makefile: 2,100; sh: 1,130; javascript: 11
file content (15 lines) | stat: -rw-r--r-- 360 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* exchange image inr through iobject */
function imgchange(inr, iobjekt)
{
    window.document.images[inr].src = iobjekt.src;
}

/* change two frames at once */
function changetwoframes(uri1, dest1, uri2, dest2)
{
  var frame1 = eval("parent." + dest1);
  var frame2 = eval("parent." + dest2);
  frame1.location.href = uri1;
  frame2.location.href = uri2;
}