473,835 Members | 2,304 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Having trouble getting marquee to work: getting Object Required errors

1 New Member
having trouble getting marquee to work get object required errors

tring t [HTML]<title>This Month at the Chamberlain Civic Center</title>
<link href="styles.cs s" rel="stylesheet " type="text/css" />

<script src="Dunbarlab9 .js" type="text/javascript"></script>

<script type="text/javascript">

function Marquee(){
var t1 = setInterval('mo veIt("Text1")', 130);

var y=yCoord (t1);

shiftIt("t1", 0,-5);

var t2 = setInterval('mo veIt("Text2")', 130);

var y=yCoord (t2);

shiftIt("t2", 0,-5);


function Stop(){
clearInterval(t 1,t2,t3,t4,t5,t 6);

function moveIt(id){
var y=yCoord (id);
if (y < -100){
placeIt("id",5, 750);}

if (y >= -100){
shiftIt("id", 0,-5);}


<div id="panel">
<img src="ccc.gif" alt="The Chamberlain Civic Center" width="322" height="134" />
Events This Month
To order tickets: Call the box office at (971) 555-9191<br />
Or click <a href="#">here</a> to order online.
<div id="BOX">
<div id="Text1" style="position : absolute; left: 0px; top: 5px">
Coming Soon to the CCC
<div id="Text2" style="position : absolute; left: 0px; top: 50px">
<b>October 2nd, 8 p.m.<br />
Falstaff</b><hr />
Enjoy the music of Verdi's <i>Falstaff</i>, as presented by the popular Rockie Mountain
Opera Company. Seating is limited.<br />
<br />
Tickets: Box ($55), Main Floor ($45), Balcony ($35)
<div id="Text3" style="position : absolute; left: 0px; top: 200px">
<b>October 7th, 8 p.m.<br />
Taiwan Acrobats</b><hr />
The Taiwan Acrobats return to the Carson Civic Center for another evening of fun
and excitment.<br />
<br />
Tickets: Box ($40), Main Floor ($35), Balcony ($30)
<div id="Text4" style="position : absolute; left: 0px; top: 350px">
<b>October 14th, 8 & 10 p.m.<br />
Roy Taylor</b><hr />
Enjoy of the blues sound of the legendary "Slow Train" Taylor. Two performances
at 8 and 10 p.m.<br />
<br />
Tickets: Box ($40), Main Floor ($35), Balcony ($30)
<div id="Text5" style="position : absolute; left: 0px; top: 500px">
<b>October 21st, 8 p.m.<br />
Celtic Dancers</b><hr />
Enjoy an evening of Celtic music and dance, as presented by the Oban Dance Company
of Scotland.<br />
<br />
Tickets: Box ($30), Main Floor ($25), Balcony ($20)
<div id="Text6" style="position : absolute; left: 0px; top: 650px">
<b>October 28th, 8 p.m.<br />
An Evening with Ike</b><hr />
David Lee presents <i>An Evening with Ike</i>, his acclaimed one-man show of the
life and times of Dwight Eisenhower.<br />
<br />
Tickets: Box ($35), Main Floor ($30), Balcony ($25)
<div id="form_button s">
<form id="marquee_but tons" action="">
<input type="button" value="Scroll Marquee" onclick="Marque e()" />
<input type="button" value="Stop Marquee" onclick="Stop() " />
<input type="button" value="Reset" onclick="locati on.reload()" />
</html>[/HTML]o make this marquee work here is the html and js

Expand|Select|Wrap|Line Numbers
  1. function placeIt(id, x, y){
  2. object=document.getElementById(id);
  3. object.style.left=x+"px";
  4. object.style.top=y+"px";
  5. }
  7. function shiftIt(id, dx, dy) {
  8. object=document.getElementById(id);
  9. object.style.left=xCoord(id)+dx+"px";
  10. object.style.top=yCoord(id)+dy+"px";
  11. }
  12. function yCoord(id) {
  13. object=document.getElementById(id);
  14. yCoord=parseInt(object.style.top);
  15. return yCoord;
  17. }
  18. function xCoord(id){
  19. object=document.getElementById(id);
  20. var xc=parseInt(object.style.top);
  21. return xc;
  22. }
Apr 6 '08 #1
1 2691
16,027 Recognized Expert Moderator MVP
What line does the error occur on?

PS. please use [code] tags when posting code and please use a good title for your threads.
Apr 7 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

by: Penn Markham | last post by:
Hello all, I am writing a script where I need to use the system() function to call htpasswd. I can do this just fine on the command line...works great (see attached file, test.php). When my webserver runs that part of the script (see attached file, snippet.php), though, it doesn't go through. I don't get an error message or anything...it just returns a "1" (whereas it should return a "0") as far as I can tell. I have read the PHP...
by: Anand | last post by:
Hi i am having trouble adding a recordset into the access database, the code seems to be working fine it passs and parses through all variables just fine without showing any errors and also when i access the recordset it displays the results, what the real issue is that the entry is not made into the database even though i use the Update command and i have also tried the BeginTrans and CommitTrans nothign seems to work and i am unable to...
by: gregory_may | last post by:
I have an application I created called "JpegViewer.exe". It simply loads a Jpeg file and displays in on the screen. It works great, in my lab. When I am using it at a customer site, things change. Occasionally, it blows up with an Application Exception. It seems to only die at the customer site
by: iainw | last post by:
HI All, 1st post here, i wonder if you can help. We are about to upload CMS t a windows server and keep getting 2 errors below. We need to go LIVE an it's delaying us. An error occured when updating the database. The likely reason is that write permissions are not set on th 'database' folder. Please remember that write and delete permissions are also required o the 'content' folder and its subfolders.
by: charlie fortune | last post by:
I'm quite new to HTML, and have seen <marquee> get bad press here. What's wrong with using it. I wanted to have the contents of a .txt file scrolling for news items, can I do this with marquee, or should I be looking at applets ?
by: somersbar | last post by:
im trying to get a table from a microsoft access database on a simple web form using visual basic.net. ive set up the database as a file dsn. this is my connection string: DBQ=C:\Program Files\Microsoft Office\OFFICE11\SAMPLES\Northwind.mdb;DefaultDir=C:\Program Files\Microsoft Office\OFFICE11\SAMPLES;Driver={Microsoft Access Driver (*.mdb)};DriverId=25;FIL=MS Access;FILEDSN=C:\Program Files\Common
by: uwe.braunholz | last post by:
Hello, I want to set the text of a marqee dynamical. So I created the following code: ****snip**** <style> #noticeMarquee { background-color:#ff00ff; color:#ffffff;
by: tony | last post by:
I am trying to use a form with a button that calls a verification script but can't seem to get the script to run at all - can anyone tell me if this SHOULD work in a forms onCLick or have I got the syntax wrong? The function is previously included with include_once('library.php'); This seems to work ok. I dont get any php errors if I turn on reporting. The function checks out ok on its own. I've also tried a simple echo with no luck....
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL http://mghospedagem.com/images/controlpanel.jpg instead of http://mghospedagem.comhttp://mghospedagem.com/images/controlpanel.jpg As u see, there's the website URL before the image URL.
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.