Solved

some of my source is showing on two pages

Posted on 1999-01-17
4
152 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

617 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