Webmaster Key - Discussion Forums


Welcome, Guest. Please login or register.
Did you miss your activation email?
February 08, 2012, 06:30:04 PM

Login with username, password and session length
Welceome to Forums!

Important information for guests and new members:

In order to understand the full benefits of becoming an active member of this forum, please review the following information on guest and new member restrictions. These forum changes have been prompted by an overwhelming and unreasonable amount of bot postings and incoherent guest spam messages. We wish to prevent these events from happening in the future and make our community a more comfortable place for all of our members.

For guests:

Guests are not allowed to open new topics, polls, or posts attachments.
If you wish to open up new discussions on this forum, we encourage you to register.

For new members:

New members with less than five posts are not allowed to modify additional profile information such as avatars, contact information, biographies, and signatures. However, new members are encouraged to post their own topics or reply to topics initiated by other members. Become active on the forums and 5 posts should be an easy task!

We are a diverse community with members from all over the world. We encourage new ideas and interesting conversation. Do not be afraid to post webmaster/computer-related questions or problems, as our active members are always willing to help when they are able. Interested? Join us.

+ Webmaster Key Forums
|-+ Webmaster Corner
| |-+ Site Design and Web Authoring
| | |-+ innerHTML for Netscape (problmes)
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Stumble Upon! Digg It! del.icio.us! Add to Technorati! ReddIt!  Send this topic Print
Author Topic: innerHTML for Netscape (problmes)  (Read 2727 times)
faran
Guest
« on: February 08, 2004, 03:07:09 PM »

hello there !
I have really big problem with innerHTML for netscape .
first of all see this code.

<script>
if (navigator.appName=="Netscape") {
document.write('<layer id="clock"></layer>')
setTimeout("show()",1000)
}
else {
document.write('<b><span id="clock"></span></b>')
setTimeout("show()",1000)
}
function show(){
var fk = new Date();
var da = fk.getDate();
var mo = fk.getMonth()+1
var yr = fk.getYear();
var hrs = fk.getHours();
var min = fk.getMinutes();
var sec = fk.getSeconds();
var col = ":";
var spc = " ";
var apm;

if (12 < hrs) {
apm="PM";
hrs-=12;
}

else {
apm="AM";
}

if (hrs == 0) { hrs=12; }
if (min<=9) {min="0"+min;}
if (sec<=9) {sec="0"+sec;}
time = da+col+mo+col+yr +" - " + hrs+col+min+col+sec+spc+apm
if (navigator.appName=="Netscape") {
document.clock.document.write( time)
document.clock.document.close()
setTimeout("show()",1000);
}
else {
clock.innerHTML = time
setTimeout("show()",1000);
}
}
</script>


This code work fine with netcape 4 but not work with latest version . could u please let me know anything else for innerHTML that work with latest netscape .
thanks a lot
Faran Kokab
« Last Edit: February 08, 2004, 03:15:40 PM by faran » Report to moderator   Logged
islanding
Key Keeper
Sr. Member
****
Posts: 313


I see, But why?


WWW
« Reply #1 on: February 09, 2004, 01:04:52 PM »

Hi,
  The innerHTML property of elements in IE, is not part of the W3C DOM. Nevertheless, in response to customers' requests, Mozilla- and Gecko-based browsers (such as Netscape 6) decided to support it in builds dated May 19, 2000 or later (Mozilla M16 and later, Netscape 6 PR2 and later).

Have you checked the JavaScript console on Netscape to see where it has the problem? On your page type javascript: into the location bar.
Report to moderator   Logged

The Box said: "Install Win95 or better ..." So I installed Linux.
faran
Guest
« Reply #2 on: February 10, 2004, 11:23:42 AM »

hello islanding !
these code work fine with IE and netscape 4 but if i use this code with netscape 4 + so it show error message that (clock has no property) ...
if u know any way to how to write dynamic on layers ?
so please let me know
faran
Report to moderator   Logged
Pages: [1] Go Up Stumble Upon! Digg It! del.icio.us! Add to Technorati! ReddIt!  Send this topic Print 
+ Webmaster Key Forums
|-+ Webmaster Corner
| |-+ Site Design and Web Authoring
| | |-+ innerHTML for Netscape (problmes)

Jump to:  
« previous next »


Our Partners
RelmaxTOP Ranking System Web Hosting RelmaxTOP Ranking System
Staff Sites
12Noon[12Noon Gallery] Andy[Urgentclick]
Tamuril[Tamuril's Digital Art Exhibit] Sensovision
Powered by MySQL Powered by PHP We are hosted by Relmax Inc. |Our Privacy Policy | Sitemap
Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC
Forum design by Tamuril © 2005.
Valid XHTML 1.0! Valid CSS!