Running script in title bar

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Carl Gilbert

    #1

    Running script in title bar

    Hi
    I have the following code but wish to move the counter into the title bar
    rather than on the page.
    ----------------------------------------------------------------------------
    -------------------

    <script>var counter = 0;</script>
    <SCRIPT LANGUAGE="JavaS cript" FOR="CamImage1" EVENT="onNewIma ge()">
    counter++;
    document.dis.co unt.value = counter;
    </SCRIPT>

    <form name="dis" method="post" action="">
    <input type="text" name="count">
    </form>

    <OBJECT ID="CamImage1" WIDTH=352 HEIGHT=288
    CLASSID="CLSID: C79D3167-6133-4e7c-821C-5C114611022D"

    CODEBASE="http://www.ipvideocent er.com/components/CameraControl.c ab#VERSION=
    3,2,1,0">
    <PARAM NAME="URL"
    VALUE="http://130.241.175.79/axis-cgi/mjpg/video.cgi?resol ution=352x288">
    </OBJECT>
    ----------------------------------------------------------------------------
    ----------------------

    Any help on this would be greatly appreciated.
    Many thanks, Carl Gilbert.


  • HikksNotAtHome

    #2
    Re: Running script in title bar

    In article <1mBKb.847$%f6. 213642@newsfep1-win.server.ntli .net>, "Carl Gilbert"
    <carl_gilbert@n tlworld.com> writes:
    [color=blue]
    >Hi
    >I have the following code but wish to move the counter into the title bar
    >rather than on the page.
    >----------------------------------------------------------------------------
    >-------------------
    >
    ><script>var counter = 0;</script>
    ><SCRIPT LANGUAGE="JavaS cript" FOR="CamImage1" EVENT="onNewIma ge()">
    > counter++;
    > document.dis.co unt.value = counter;[/color]

    Since your code is IE-only, just set the document.title= counter
    --
    Randy

    Comment

    • Laurent Bugnion, GalaSoft

      #3
      Re: Running script in title bar

      Hi,

      HikksNotAtHome wrote:
      [color=blue]
      > In article <1mBKb.847$%f6. 213642@newsfep1-win.server.ntli .net>, "Carl Gilbert"
      > <carl_gilbert@n tlworld.com> writes:
      >
      >[color=green]
      >>Hi
      >>I have the following code but wish to move the counter into the title bar
      >>rather than on the page.
      >>----------------------------------------------------------------------------
      >>-------------------
      >>
      >><script>var counter = 0;</script>
      >><SCRIPT LANGUAGE="JavaS cript" FOR="CamImage1" EVENT="onNewIma ge()">
      >> counter++;
      >> document.dis.co unt.value = counter;[/color]
      >
      >
      > Since your code is IE-only, just set the document.title= counter[/color]

      This will also work in Mozilla 1+ and Netscape 6+.

      Just for information ;-)

      Laurent
      --
      Laurent Bugnion, GalaSoft
      Software engineering: http://www.galasoft-LB.ch
      Private/Malaysia: http://mypage.bluewin.ch/lbugnion
      Support children in Calcutta: http://www.calcutta-espoir.ch

      Comment

      Working...