Solved

some of my source is showing on two pages

Posted on 1999-01-17
4
137 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
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 …
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

762 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

19 Experts available now in Live!

Get 1:1 Help Now