File: utilities.js

package info (click to toggle)
torcs 1.3.3%2Bdfsg2-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 620,556 kB
  • ctags: 14,091
  • sloc: cpp: 81,695; xml: 64,726; ansic: 9,746; makefile: 2,039; sh: 1,134
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;
}