473,770 Members | 1,826 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help with random script...

I have modified some script and think i have put a bit in that isn't
"compliant"
Is the bit marked below (towards the end) correct - should it be () and not
("")

<SCRIPT LANGUAGE="JavaS cript">
<!-- hiding
page=new Date();
if (page.getDate() == 1)
document.write( "<embed src='media/audio/waltzinblack.mp 3' width='145'
height='60' autostart='true ' hidden='true' loop='false' volume='70'>");

if (page.getDate() == 2)
document.write( "<embed src='media/audio/littlegreenbag. mp3' width='145'
height='60' autostart='true ' hidden='true' loop='false' volume='70'>");

if (page.getDate() == 3)
document.write( "<embed src='media/audio/rockthecasbah.m p3' width='145'
height='60' autostart='true ' hidden='true' loop='false' volume='70'>");

if (page.getDate() == 4)
document.write( "<embed src='media/audio/softparade.mp3' width='145'
height='60' autostart='true ' hidden='true' loop='false' volume='70'>");

if (page.getDate() == 5)
document.write( "<embed src='media/audio/cematinla.mp3' width='145'
height='60' autostart='true ' hidden='true' loop='false' volume='70'>");

if (page.getDate() == 6)
document.write( "<embed src='media/audio/venusinfurs.mp3 ' width='145'
height='60' autostart='true ' hidden='true' loop='false' volume='70'>");

if (page.getDate() == 7)
document.write( "<embed src='media/audio/allineed.mp3' width='145'
height='60' autostart='true ' hidden='true' loop='false' volume='70'>");

if (page.getDate() == 8)
document.write( "<embed src='media/audio/heroin.mp3' width='145' height='60'
autostart='true ' hidden='true' loop='false' volume='70'>");

if (page.getDate() == 9)
document.write( "<embed src='media/audio/grooveme.mp3' width='145'
height='60' autostart='true ' hidden='true' loop='false' volume='70'>");

if (page.getDate() == 10)
document.write( "<embed src='media/audio/totu.mp3' width='145' height='60'
autostart='true ' hidden='true' loop='false' volume='70'>");

if (page.getDate() == 11)
document.write( "<embed src='media/audio/monstermash.mp3 ' width='145'
height='60' autostart='true ' hidden='true' loop='false' volume='70'>");

if (page.getDate() == 12)
document.write( "<embed src='media/audio/twilightzone.mp 3' width='145'
height='60' autostart='true ' hidden='true' loop='false' volume='70'>");

if (page.getDate() == 13)
document.write( "<embed src='media/audio/sundaygirl.mp3' width='145'
height='60' autostart='true ' hidden='true' loop='false' volume='70'>");

if (page.getDate() == 14)
document.write( "<embed src='media/audio/theuniversal.mp 3' width='145'
height='60' autostart='true ' hidden='true' loop='false' volume='70'>");

if (page.getDate() == 15)
document.write( "<embed src='media/audio/closetome.mp3' width='145'
height='60' autostart='true ' hidden='true' loop='false' volume='70'>");

if (page.getDate() == 16)
document.write( "<embed src='media/audio/kungfufighting. mp3' width='145'
height='60' autostart='true ' hidden='true' loop='false' volume='70'>");

if (page.getDate() == 17)
document.write( "<embed src='media/audio/youandmesong.mp 3' width='145'
height='60' autostart='true ' hidden='true' loop='false' volume='70'>");

if (page.getDate() == 18)
document.write( "<embed src='media/audio/totu.mp3' width='145' height='60'
autostart='true ' hidden='true' loop='false' volume='70'>");

if (page.getDate() == 19)
document.write( "<embed src='media/audio/americanbeauty. mp3' width='145'
height='60' autostart='true ' hidden='true' loop='false' volume='70'>");

if (page.getDate() == 20)
document.write( "<embed src='media/audio/closetome.mp3' width='145'
height='60' autostart='true ' hidden='true' loop='false' volume='70'>");

if (page.getDate() == 21)
document.write( "<embed src='media/audio/hourformagic.mp 3' width='145'
height='60' autostart='true ' hidden='true' loop='false' volume='70'>");

if (page.getDate() == 22)
document.write( "<embed src='media/audio/theuniversal.mp 3' width='145'
height='60' autostart='true ' hidden='true' loop='false' volume='70'>");

if (page.getDate() == 23)
document.write( "<embed src='media/audio/themovie.mp3' width='145'
height='60' autostart='true ' hidden='true' loop='false' volume='70'>");

if (page.getDate() == 24)
document.write( "<embed src='media/audio/blackpolishedch rome.mp3' width='145'
height='60' autostart='true ' hidden='true' loop='false' volume='70'>");

if (page.getDate() == 25)
document.write( "<embed src='media/audio/stonedimmaculat e.mp3' width='145'
height='60' autostart='true ' hidden='true' loop='false' volume='70'>");

if (page.getDate() == 26)
document.write( "<embed src='media/audio/rockthecasbah.m p3' width='145'
height='60' autostart='true ' hidden='true' loop='false' volume='70'>");

if (page.getDate() == 27)
document.write( "<embed src='media/audio/waltzinblack.mp 3' width='145'
height='60' autostart='true ' hidden='true' loop='false' volume='70'>");

if (page.getDate() == 28)
document.write( "<embed src='media/audio/sundaygirl.mp3' width='145'
height='60' autostart='true ' hidden='true' loop='false' volume='70'>");

if (page.getDate() == 29)
document.write( "<embed src='media/audio/allineed.mp3' width='145'
height='60' autostart='true ' hidden='true' loop='false' volume='70'>");

if (page.getDate() == 30)
document.write( "<embed src='media/audio/youandmesong.mp 3' width='145'
height='60' autostart='true ' hidden='true' loop='false' volume='70'>");

if (page.getDate() == 31)
document.write( "<embed src='media/audio/twilightzone.mp 3' width='145'
height='60' autostart='true ' hidden='true' loop='false' volume='70'>");
page=new Date();

document.write( "") -------------THIS BIT HERE!!!
//done hiding -->
</SCRIPT>
Jul 20 '05
12 1994
Franklin P Patchey hu kiteb:
Nice one Fabian!
... I pay you a
compliment that your shortened script is better and you reply with
rudeness - what's going on there?


I'm confused. I don't recall seeing any replies from you on the matter
of my shortened script. And I don't recall writing a rude response to
you. I would be pleased if you would highlight what exactly I wrote to
you that you consider so rude.
--
--
Fabian
Visit my website often and for long periods!
http://www.lajzar.co.uk

Jul 20 '05 #11
No you didn't. I am referring to Dr John Stockton saying that as I'm posting
from a UK server that I should understand English. You weren't rude the Dr
guy

"Fabian" <la****@hotmail .com> wrote in message
news:bo******** *****@ID-174912.news.uni-berlin.de...
Franklin P Patchey hu kiteb:
Nice one Fabian!
... I pay you a
compliment that your shortened script is better and you reply with
rudeness - what's going on there?


I'm confused. I don't recall seeing any replies from you on the matter
of my shortened script. And I don't recall writing a rude response to
you. I would be pleased if you would highlight what exactly I wrote to
you that you consider so rude.
--
--
Fabian
Visit my website often and for long periods!
http://www.lajzar.co.uk

Jul 20 '05 #12
JRS: In article <bo**********@n ewsg1.svr.pol.c o.uk>, seen in
news:comp.lang. javascript, Franklin P Patchey
<RE************ **@talk21.com> posted at Sun, 2 Nov 2003 12:27:46 :-
No you didn't. I am referring to Dr John Stockton saying that as I'm posting
from a UK server that I should understand English.


You wrote "(I don't understand javascript really, so please treat me as
thick!)". I saw no reason to disagree with the first part, so I
complied with the second part.

You should read the newsgroup FAQ with care, to find out (/inter alia/)
how news posts and replies should be formatted; it will increase your
chances of getting useful replies in future.

--
© John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 IE 4 ©
<URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang. javascript
<URL:http://www.merlyn.demo n.co.uk/js-index.htm> JS maths, dates, sources.
<URL:http://www.merlyn.demo n.co.uk/> TP/BP/Delphi/JS/&c., FAQ topics, links.
Jul 20 '05 #13

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

Similar topics

3
8831
by: Jennie Friesen | last post by:
Hello-- I would like to display a different line of text (32 different messages) on refresh, BUT with no repeats. The script I am currently using is: <script language=javascript type=text/javascript> <!-- a = Math.floor(Math.random() * 32);
3
1874
by: Jim Davidson | last post by:
Here's what I'm trying to do: I have a string with 30 numbers in it. I want to generate a random number between 0 an 30, go to that position in the string and get that number. Here is the code you can run it and see it doesn't work. I'm new at this (only about a week) but I thought this should work. Please help. It's probably something simple, but I don't see it.
4
16775
by: Phillo | last post by:
Hello, I'm new at Javascript, and have written a script for a series of random roll-over button images, but one thing I would like to add is a function that checks to make sure that there are no duplicates in the randomly generated variables that choose the pictures. Can anyone give me a hand with this? One other thing I can't seem to figure out is how to manage the "onLoad" aspect of caching my roll-over images (DW has locked the...
1
3721
by: Rahul | last post by:
Hi Everybody I have some problem in my script. please help me. This is script file. I have one *.inq file. I want run this script in XML files. But this script errors shows . If u want i am attach this script files and inq files. I cant understand this error. Please suggest me. You can talk with my yahoo id b_sahoo1@yahoo.com. Now i am online. Plz....Plz..Plz...
2
2824
by: sgMuser | last post by:
Hi, I am not a good developer of Javascript codes. Needs this help to make some modification to this famous free javascript from Anarchos. i am using this in one of my webpage. What it does is, rotates banners with hyperlink specific to each image. it works just perfect but i need a simple modification. now I want to stop rotating the images when I mouseover on the image, and then continue once I move the cursor out of the banner image....
1
1785
by: ArcInversion | last post by:
Hi, I've been using a javascript script to create a dragon that flies across the page. Anyways, I'd like to make it so when you click the dragon it takes you to a new page. Was wondering if anyone could help me out here. Below is the complete script. <SCRIPT language="JavaScript1.2"> var cursorpath="http://i68.photobucket.com/albums/i9/worklog_halcyon/Misc/pet1_lohi_dog.png" if (document.layers)
6
2403
by: mrtaka79 | last post by:
Okay, first of all, I'm a complete noob, so go easy on me. I have this code that works perfectly for me. The only thing I want to add is to randomize the pictures/links that show up. Can anyone just tell me where to add additional code to the following? BTW this is the only code I could find that works in my Beta Blogger sidebar. <a href="javascript:gotoshow()"><img border="0" width="300" src="/OneMissedCall1.jpg" name="slide"...
0
5576
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted ******************************************************** For this teeny job, please refer to: http://feeds.reddit.com/feed/8fu/?o=25
3
1379
by: blogger | last post by:
i try use this script but keep getting Char: 6 Error: Expected ';' What can i do? <SCRIPT type="text/javascript"> /*Script distributed by Hypergurl.com Visit http://www.hypergurl.com/easyhtml.html for this script and many more */ // This part preloads images. You can use different images. // Change URL path to the snow image below grphcs=new Array(6) Image0=new Image(); Image0.src=grphcs="snow1.gif";
9
5619
by: DaiOz | last post by:
Hi guys im doing a course which includes some JavaScript and I need help with the following question please, The code I have so far is below but I don't think its right please help as I need to complete this part to move onto the next. <HTML> <HEAD> <TITLE>M150 TMA 5 : Programming : Task 1 - Testing Math.random()</TITLE>
0
9617
marktang
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...
0
10257
Oralloy
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...
0
10099
jinu1996
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...
1
7456
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6710
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
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...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4007
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
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.