Solved

some of my source is showing on two pages

Posted on 1999-01-17
4
139 Views
Last Modified: 2010-04-09
http://users.aol.com/WARPMOTOR/spasim2n.htm
http://users.aol.com/WARPMOTOR/spasim2o.htm
At the top at the scrolling banner the code shows above the
banner and at the bottom the date is sprayed across the page
with the code showing. I think maybe it does not do this
all the time. Can you check it? thanks
0
Comment
Question by:johnh619
  • 3
4 Comments
 
LVL 3

Expert Comment

by:idt
ID: 1845375
------------------------------------------------
Add remarks to this section
------------------------------------------------

<a=contents>
<center>
<SCRIPT LANGUAGE="JavaScript">

RIGHT HERE put in a <!--

         page=new Date();
         if ((page.getDate() >= 1) && (page.getMonth() == 11))
         document.write("<img src='Xlites2.gif' width=120 height=29 alt=xmaslights><img src='Xlites2.gif' width=120 height=29 alt=xmaslights><img src='Xlites2.gif' width=120 height=29 alt=xmaslights><img src='Xlites2.gif' width=120 height=29 alt=xmaslights><img src='Xlites2.gif' width=120 height=29 alt=xmaslights><img src='Xlites2.gif' width=120 height=29 alt=xmaslights>");
              if ((page.getDate() <= 8) && (page.getMonth() == 0))
           document.write("<img src='Xlites2.gif' width=120 height=29 alt=xmaslights><img src='Xlites2.gif' width=120 height=29 alt=xmaslights><img src='Xlites2.gif' width=120 height=29 alt=xmaslights><img src='Xlites2.gif' width=120 height=29 alt=xmaslights><img src='Xlites2.gif' width=120 height=29 alt=xmaslights><img src='Xlites2.gif' width=120 height=29 alt=xmaslights>");

RIGHT HERE put in a // -->
</SCRIPT>
</center>




------------------------------------------------
Add remarks to this section as well:
------------------------------------------------

</table>
<center>
<SCRIPT language=javascript> banner("",70) </SCRIPT>
</center>
<font size=7 color=blue>Build Space Simulator


------------------------------------------------
There may be others aswell
------------------------------------------------


-iDT
0
 
LVL 3

Expert Comment

by:idt
ID: 1845376
---------------------------------
Found more
---------------------------------

Some of background images created using Universe version 1.6</p>
<br>
<center>
<SCRIPT LANGUAGE="JavaScript">
         page=new Date();
         if ((page.getDate() >= 1) && (page.getMonth() == 11))
         document.write("<img src='Xlites2.gif' width=120 height=29 alt=xmaslights><img src='Xlites2.gif' width=120 height=29 alt=xmaslights><img src='Xlites2.gif' width=120 height=29 alt=xmaslights><img src='Xlites2.gif' width=120 height=29 alt=xmaslights><img src='Xlites2.gif' width=120 height=29 alt=xmaslights><img src='Xlites2.gif' width=120 height=29 alt=xmaslights>");
              if ((page.getDate() <= 8) && (page.getMonth() == 0))
           document.write("<img src='Xlites2.gif' width=120 height=29 alt=xmaslights><img src='Xlites2.gif' width=120 height=29 alt=xmaslights><img src='Xlites2.gif' width=120 height=29 alt=xmaslights><img src='Xlites2.gif' width=120 height=29 alt=xmaslights><img src='Xlites2.gif' width=120 height=29 alt=xmaslights><img src='Xlites2.gif' width=120 height=29 alt=xmaslights>");
</SCRIPT>
</SCRIPT>
</center>
<br>
<font color=white>
<SCRIPT LANGUAGE="JavaScript">
         page=new Date();
         if ((page.getDate() >= 8) && (page.getMonth() == 0))
         document.write("<embed src=blade.mid hidden=true autostart=true volumn=50>");
         if ((page.getMonth() >= 1) && (page.getMonth() <= 11))
         document.write("<embed src=blade.mid hidden=true autostart=true volumn=50>");
</script>
<SCRIPT LANGUAGE="JavaScript">
         page=new Date();
         if ((page.getDate() >= 1) && (page.getMonth() == 11))
         document.write("<embed src=cob2.mid hidden=true autostart=true volumn=50>");
         if ((page.getDate() <= 7) && (page.getMonth() == 0))
         document.write("<embed src=cob2.mid hidden=true autostart=true volumn=50>");
page=new Date();
var months = new Array(13);
months[1] = "January";
months[2] = "February";
months[3] = "March";
months[4] = "April";
months[5] = "May";
months[6] = "June";
months[7] = "July";
months[8] = "August";
months[9] = "September";
months[10] = "October";
months[11] = "November";
months[12] = "December";
var dateObj = new Date()
var lmonth = months[dateObj.getMonth() + 1]
var fyear = "19" + dateObj.getYear()
var date = dateObj.getDate()
document.write("<br>" + lmonth + " " + date + ", " + fyear)
</SCRIPT></font>
<font color=green>If this date is in the christmas season you should hear a midi carol.</font>

-iDT


0
 
LVL 3

Accepted Solution

by:
idt earned 50 total points
ID: 1845377
Always insert remark tags within your <SCRIPT> sections to prevent code from showing on pages:

<SCRIPT>
<!--
your code
his code
their code
//-->
<SCRIPT>

-iDT
"all generalizations are false"
0
 

Author Comment

by:johnh619
ID: 1845378
idt is name of my isp
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Making my existing website "mobile friendly"... 10 34
Synchronizing CSS load 3 29
[HTML] Graphic not centered on page 4 45
Bootstrap on PLNKR 3 11
Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now