473,320 Members | 1,978 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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="JavaScript" FOR="CamImage1" EVENT="onNewImage()">
counter++;
document.dis.count.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.ipvideocenter.com/components/CameraControl.cab#VERSION=
3,2,1,0">
<PARAM NAME="URL"
VALUE="http://130.241.175.79/axis-cgi/mjpg/video.cgi?resolution=352x288">
</OBJECT>
----------------------------------------------------------------------------
----------------------

Any help on this would be greatly appreciated.
Many thanks, Carl Gilbert.
Jul 20 '05 #1
2 1448
In article <1m******************@newsfep1-win.server.ntli.net>, "Carl Gilbert"
<ca**********@ntlworld.com> writes:
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="JavaScript" FOR="CamImage1" EVENT="onNewImage()">
counter++;
document.dis.count.value = counter;


Since your code is IE-only, just set the document.title=counter
--
Randy
Jul 20 '05 #2
Hi,

HikksNotAtHome wrote:
In article <1m******************@newsfep1-win.server.ntli.net>, "Carl Gilbert"
<ca**********@ntlworld.com> writes:

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="JavaScript" FOR="CamImage1" EVENT="onNewImage()">
counter++;
document.dis.count.value = counter;

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


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

Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: leke | last post by:
Hi, I am trying to learn PHP but am having some problems getting my code running in Explorer 6. <html> <head> <title>PHP Test</title> </head> <body> <?php echo '<p>Hello World</p>'; ?>...
8
by: Paul Cochrane | last post by:
Hi all, I've got an application that I'm writing that autogenerates python code which I then execute with exec(). I know that this is not the best way to run things, and I'm not 100% sure as to...
1
by: Sarah | last post by:
I am running on MS WinXP Pro. I have my virtual directories set up properly. If i run just a simple "hello world" application it works fine. i have the following code, which was downloaded from the...
5
by: Ben Dewey | last post by:
This is a repost, But I have some new information. I have a server that is configured for .NET 1.1 and 2.0. For some reason all my postback events for aren't firing when using .NET 1.1. Under...
1
by: Anonieko | last post by:
Query: How to display progress bar for long running page Answer: Yet another solution. REFERENCE: http://www.eggheadcafe.com/articles/20050108.asp My only regret is that when click the...
1
by: Aaron West | last post by:
Try this script to see what queries are taking over a second. To get some real output, you need a long-running query. Here's one (estimated to take over an hour): PRINT GETDATE() select...
1
by: daniel_xi | last post by:
Hi all, I am running a VS 2003 .NET project on my client machine (Win 2000 SP4, ..NET framework 1.1), running an ASP.NET application on a remote web server (Win 2000 Server, IIS 6.0, .NET...
21
by: kevinfairs | last post by:
I've got the following javascript validation routine which runs against an asp page. function validate(form) { if (form.Forename.value == "") { alert("Please enter a forename");...
22
by: V S Rawat | last post by:
(bringing the discussion here for php.general) I am on xpsp3, wampserver 2.0, having apache 2.2.8, php 5.2.6, MySQL 5.0.51b. http://localhost/ is E:\wamp\www\ I have put the first php script...
0
by: eddiefisher41 | last post by:
Hey guys. Im having problems running a python cgi. Im using the example code from: http://www.python.org/doc/essays/ppt/sd99east/sld041.htm as writen by Van Rossum himself I can get the script...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.