Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Joining multiple HTML 'widgets'
Old 07-15-2009, 01:31 AM Joining multiple HTML 'widgets'
Junior Talker

Posts: 3
Name: shifany
Trades: 0
Hi everyone, this is my first post after trawling the internets for hours for an answer!

I have two codes, one for a small clock and the other for the date.

CLOCK
Code:
<object width="65" height="65"><param name="movie" value="http://www.csalim.com/clocks/399591.swf"><embed src="http://www.csalim.com/clocks/399591.swf" width="65" height="65"></embed></object>
DATE
Code:
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<div style="color:WHITE;">
<style type="text/css">
#container {
width:150px;
padding:1em;
margin;
}
#day,#date {
font-family:verdana,arial,helvetica,sans-serif;
font-size:1em;
}
</style>

<script type="text/javascript">
if(window.addEventListener){
window.addEventListener('load',showDate,false);
}
else {
if(window.attachEvent){
window.attachEvent('onload',showDate);
}
}

function showDate() {

months=['January','February','March','April','May','June', 'July',
'August','September','October','November','Decembe r'];

days=['Sunday','Monday','Tuesday','Wednesday',
'Thursday','Friday','Saturday'];

now=new Date();
yy=now.getUTCFullYear();
mm=now.getUTCMonth();
dt=now.getDate();
dd=now.getUTCDay();

end='th.';
if((dt==1)||(dt==21)||(dt==31)) {
end='st.';
}
if((dt==2)||(dt==22)) {
end='nd.';
}
if((dt==3)||(dt==23)) {
end='rd.';
}
document.getElementById('day').firstChild.nodeValu e=days[dd]+' '+dt+end;
document.getElementById('date').firstChild.nodeVal ue=months[mm]+', '+yy;
}
</script>

</head>
<body>

<div id="container">
<div id="day">&nbsp;</div>
<div id="date">&nbsp;</div>
</div>

</body>
</html>
Together, they look like this:
__________________

Please login or register to view this content. Registration is FREE
shifanyroma is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-15-2009, 02:33 PM Re: Joining multiple HTML 'widgets'
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
And your question is what ???
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Joining multiple HTML 'widgets'
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.74575 seconds with 12 queries