Forum Moderators: open

Message Too Old, No Replies

another font for this java script please

         

redeemer

6:48 pm on Jul 5, 2004 (gmt 0)

10+ Year Member



hi all ,how can I change the font for this script and the position, I want to place it where I think it fit.

<CENTER><H2><B>
This page was last Modified on:
<SCRIPT LANGUAGE="LiveScript">
<!--
document.write(document.lastModified)
//-->
</SCRIPT>.</B></H2></CENTER>

redeemer

7:43 pm on Jul 5, 2004 (gmt 0)

10+ Year Member



.bump

Bernard Marx

9:30 pm on Jul 5, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<CENTER><H2><B>
This page was last Modified on:
<SCRIPT type="text/javascript">
<!--
document.write('<span style="font-family:meiouw;">'+document.lastModified+'<span>')
//-->
</SCRIPT>.</B></H2></CENTER>

LiveScript? Where did you get that one from?

BTW. Bumping your own thread when it's less than an hour old probably won't help you in the popularity stakes.

redeemer

11:19 am on Jul 6, 2004 (gmt 0)

10+ Year Member



thanks dude, I found it on the net and whats so cool about LIVESCRIPT? call me a nOOb, btw I dont like to be popular :)

redeemer

11:23 am on Jul 6, 2004 (gmt 0)

10+ Year Member



oops,..I wanted to change the font but it doesn't do anything,stays the same,and how can I move it in dreamweaver where I want it?

Bernard Marx

11:43 am on Jul 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I missed out the / in the closing </span>. Other than that, it should work, just as long as you put in a font-family that the user has installed in their computer.

LiveScript was the original name for JavaScript.

Dreamweaver? What's that?

redeemer

2:04 pm on Jul 6, 2004 (gmt 0)

10+ Year Member



cOOL! thanks again, still one question: how do I put it 100px left and 160px top with CSS? cuz its always in the center and I try with CSS but don't know where to put the script,when I put it in the body then I get a blank screen when saved.this is what I got:..

<html>
<head>

<style type="text/css">

#update {
position: absolute;
left: 100px;
top: 160px;
margin: 0px;
padding: 0px;
font-family: "courier";
font-size: 12px;
color: #000000;
}

</style>

</head>

<body>

<div id="update">This page was last Modified on:
<!--
document.write('<span style="font-family:arial;">'+document.lastModified+'</span>')
//-->

</body>

</html>

Rambo Tribble

3:09 pm on Jul 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Your invocation of the JavaScript document.write() must be contained in a set of script tags.

<script type="text/javascript">
<!--
document.write~etc.
-->
</script>

redeemer

4:05 pm on Jul 6, 2004 (gmt 0)

10+ Year Member



man I must be a difficult guy!

<html>
<head>

<style type="text/css">

#update {
position: absolute;
left: 100px;
top: 160px;
margin: 0px;
padding: 0px;
font-family: "courier";
font-size: 12px;
color: #000000;
}

</style>

</head>

<body>

<div id="update">This page was last Modified on:

//so this CSS is 100px LEFT and 160px TOP//

behind it I want the timestamp or whatever it is cald but HoW? just pasting the script behind ""<div id="update">This page was last Modified on:"" doesn't work then I get a blank screen cuz of the

<!-- and --> It can't be that hard.

ajkimoto

2:02 pm on Jul 7, 2004 (gmt 0)

10+ Year Member



redeemer,

This should give you what you want when used with your current style definition:

<div id="update">This page was last Modified on:
<script type="text/javascript">//<![CDATA[
document.write('<span>'+document.lastModified+'</span>')
//]]></script>
</div>

Hope this helps,

ajkimoto

redeemer

2:14 pm on Jul 7, 2004 (gmt 0)

10+ Year Member



hahaha! yes it works thanks man ...thanks all of you!thats all for now have fun!

Rambo Tribble

2:32 pm on Jul 7, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



From LiveScript to CDATA in one thread. That's a time warp.

redeemer

6:42 pm on Jul 7, 2004 (gmt 0)

10+ Year Member



learning fast ;)