Solved

some of my source is showing on two pages

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need output in powershell ( Vertical format) 2 33
Selected in an option list 13 26
email validation 9 47
How to get chosen background-color on every line? 10 14
This article discusses four methods for overlaying images in a container on a web page
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

740 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