Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

some of my source is showing on two pages

Posted on 1999-01-17
4
Medium Priority
?
160 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 200 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
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…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

722 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