Mushy-pea 36 What, you can change this tag?

Hello everyone. I'm trying to write some Javascript code to make a logo on my website flash periodically between two differently coloured versions (i.e. a simple "swap image - restore image job). Here is a simplified version of what I am attempting, with no loops added yet:

<html>
<head>
<title>Rochfest Preview Portal (RPP)</title>
<script language="javascript" type="text/javascript">
function swap_image()
{
if (flag1 == 1)
{
document.getElementById("img1").src="rochfest-logo2.gif";
}
else if (flag1 == 2)
{
document.getElementById("img1").src="rochfest-logo.gif";
};
}
</script>
</head>
<body>
<p align="center"><img src="rochfest-logo.gif" id="img1"></p>
<script language="javascript" type="text/javascript">
var a = 0; var flag1 = 1;
a = setTimeout("swap_image()", 1000);
flag1 = 2;
a = setTimeout("swap_image()", 1000);
</script>
</body>
</html>

The featured script fails to do anything. I have read some tutorials on w3schools and checked for obvious errors but can't find anything. If anyone can point out my mistake here I would really appriciate it. Thanks.

Steven.

Mushy-pea 36 What, you can change this tag?

Hello everyone. Does anyone know at what offset the boot sector of a FAT 32 file system starts? I mean just past the BIOS data block, where the executable boot code is found. I'm trying to build an image file of ReactOS that I can run in QEMU. Any help would be appriciated. Thanks.

Steven.

P.S. Check out ReactOS if you're interested:

http://www.reactos.com

Mushy-pea 36 What, you can change this tag?

Hello everyone. I know the API of an operating system is a collection of functions within the kernel that are available for applications to use. My question is, how do you call these functions into action from within a C program, if you're compiling the source to run on Linux? I know how function calls work (basically), but so far I've only used internal calls. Also, is the proceedure the same for calling functions in shared libraries? Any answers would be appriciated. Thanks.

Steven.

Mushy-pea 36 What, you can change this tag?

Hello everyone. I recently picked up a legal copy of OS X Tiger for x86 from the official Apple open source website. I am going to attempt to install it on an AMD Athlon based PC with 256 MB RAM and no SSE support. I will then attempt to grab an image of the installed system and put it inside a file so I can run it on QEMU (a CPU emulator / VM) for Linux. This way it will be able to take advantage of emulated SSE support, while still running most instructions directly. There are a couple of questions I would like to ask:

1. If I get "kernel panic" type messages while trying to install, does this probably mean the AMD is missing some necessary instructions (like SSE)?

2. If I manage to grab an image of the installed system, will it cause problems trying to run it on a virtual machine where the hardware will look different? If so, will I be able to solve these problems by manually editing the registry (or whatever the Mac equivalent is called)?

Thanks for any answers in advance.

Steven.

Note: OS X has got the coolest GUI ever. I approve :) .

Mushy-pea 36 What, you can change this tag?

Hi Joe. Yes I have read the manual, perhaps a bit too briefly. I've realised what I did wrong now; no boot code in the superblock of the ext3 image. I should have thought of that really. Thanks for the advice.

Steven.

Mushy-pea 36 What, you can change this tag?

Hello everyone. I recently installed the QEMU (0.8.2) CPU emulator / virtualisation system on Puppy Linux 2.00. I managed to get it to run by pointing it at an ext3 image that contains the Puppy 2.00 root filesystem. This is just to see if it works, my intension is to get Windows running on it. The problem is, the thing just opens an almost empty console window and does nothing else. It doesn't hang, it just seems to get stuck. Has anyone else encountered similar problems? Thanks.

Steven.

P.S. This problem occurs in full emulation mode (i.e. no kqemu accelerator module used).

Mushy-pea 36 What, you can change this tag?

Hello everyone. I'm trying to get a webcam to work with Puppy Linux 2.00. This distro has a 2.6.16.7 kernel. I tried to load the module usbvideo.ko using:

modprobe usbvideo

The result was:

usbvideo: Unknown symbol v41_compat_ioct132
usbvideo: Unknown symbol video_devdata
usbvideo: Unknown symbol video_unregister_device
usbvideo: Unknown symbol video_register_device
usbvideo: Unknown symbol video_usercopy

Does anyone know what these errors mean, or if the problem can be fixed? Thanks.

Steven.

Mushy-pea 36 What, you can change this tag?

Hello everyone. If I save an XML document in ANSI format, should I identify it's character set as ISO-8859 in the DTD? Thanks.

Steven.

Mushy-pea 36 What, you can change this tag?

Hello all. I am trying to write an SSJS application to process the submissions from a form on my website. I downloaded the Mono .NET compiler, which has a JScript.NET compiler in it. I believe JScript.NET is a superset of Javascript (and my host has a Javascript runtime engine) so this seemed appropriate. However, I'm getting compile errors from some very basic statements. For example:

<server>
var file1 = 0;
var success = 0;
var first_name = "0";
var surname = "0";
var e_mail = "0";
var add = "0";
var feedback = "0";
 
file1 = new File("/logs/newsgroup.txt");
success = file1.open("a");
file1.close();
</server>

This brings up numerous errors starting with:

/mnt/floppy/thanks.htm (1, 0) Error: msg.syntax
Unhandled exception: System.Exception: must create expr stm with
numerous errors....
numerous errors....

If anyone can point out my silly mistakes I would really appriciate it. Thanks.

Steven.

Mushy-pea 36 What, you can change this tag?

Hello all. I decided to use some PHP scripts on my website recently. :p I know all you need to do is write a .php file with PHP code embedded within (<?php ?>) tags, then upload it to your host. What I was wondering is, does the code stay in script form and get parsed out and read by an interpreter on the server each time a client requests a page? Or does the server read the .php files as soon as you upload them and replace the scripts with a bytecode, which is then run by a VM? Thanks for any answers.

Steven.

Mushy-pea 36 What, you can change this tag?

Thanks for the advice.

You could probably save some overhead though by using CSS instead of JavaScript.

Can I take this to mean that CSS allows the placement of swapable and roll over images? Wouldn't that require the use of Javascript event detectors (i.e. onmouseover) anyway?

Steven.

Mushy-pea 36 What, you can change this tag?

Hello fellow web designers. I used Dreamweaver to place a rollover image on one of my web pages. It uses Javascript. When I looked at the code it had written, it includes the following null hyperlink on the image:

<a href="#"><img src="rochfest-logo.gif" onmouseover="stuff" onmouseout="more stuff"></a>

Is there any chance this null link could cause errors on some browsers? I have only tested the page on IE6. Thanks for any help.

Steven.

Mushy-pea 36 What, you can change this tag?

Thanks guys.

Steven.

Mushy-pea 36 What, you can change this tag?

Hello everyone. Does anyone know if it is possible to redirect a browser with Javascript? If it is, could someone please give me a clue as to how it is done? I have searched the w3schools tutorial where I started learning Javascript but can't find anything on this. Any help would be appriciated. Thanks.

Steven.

Mushy-pea 36 What, you can change this tag?

Hello everyone. I recently launched the website http://www.rochfest.co.uk to help promote Rochfest. Please check out the site if you get time.

What I wanted to ask is, is it possible to launch pop-up windows using javascript? If it is, how is this done? If this is not possible, do you know which kinds of scripts can be used to launch pop-ups? Thanks.

Steven.

Mushy-pea 36 What, you can change this tag?

Chemical Weapons -> Gas mask

Mushy-pea 36 What, you can change this tag?

Hello everyone. A few months ago I started experimenting with Live CD and installable distributions of Linux on my PC, having stuck with Windows before then. I learnt a bit about hard disk partitions and multi boot systems, as well as finding out how many open source OS's are available for the x86. This got me thinking, "Is it possible to install loads of operating systems on one PC (i.e. 10 to 20)? Maybe I could set a world record."

I realise this would probably involve quite a bit of fiddling, as I would have to try to force most of the OS's to boot from logical drives. If anyone has seen this tried before I would be interested to hear about the results. Thanks.

Steven.

Mushy-pea 36 What, you can change this tag?

Hello everyone:p . Does anyone know what kind of bash script line I could use to copy the contents of a file to the boot sector of a FAT12 3.5" floppy disk? Any help would be appriciated. Thanks.

Steven :cool: .

Mushy-pea 36 What, you can change this tag?

Hello everyone, just joined this forum. Does anyone know if there is a function in Windows XP that allows you to write to the boot sector of a FAT12 3.5" floppy disk? If there isn't, do you know of any software out there that would allow me to do this? Thanks.

Steven.