🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.javascript
Article #84

Re: jscript help sought for adding writing or table cells

#84
From: Stuart Updegrave
Date: Thu, 22 Oct 1998 00:00
64 lines
2902 bytes
sian <"vyann-remove this-"@hotmail.com> > wrote in message
<362FA857.DBE853A5@hotmail.com>...
:hello to you.
:
:I like to have jscript add writing  (not a gif)  say, on rollover, to a
:table cell or some area on the screen. is that possible ?
:
:Can I also have the jscript modify the html itself, add another <td>
:with a gif inside on rollover... or even change the size of the frames ?
:
:this is meant for navigator and explorer 3 ...(if that matters)
:--------------------------------------------------------------

All of these things are possible in IE4+. Some are possible in NN4+ I doubt
any are possible in IE3/NN3.

* Any ID'ed text HTML element can have its text changed by
  assigning the new string as follows:

    idFoo.innerText = 'some new text for you!';

  Note, this is also possible in NN4 through the use of (hiss!)
  layers (positioned DIV tags, or the LAYER tag itself). Check
  developer.netscape.com for more details.

* Similarly, you can change the HTML contents of an element via:

    idFoo.innerHTML = '<B>some new <I>HTML</I> for you!</B>';

* You can add/modify/delete tabular structures through the use of
  the TABLE Object Model. See the following page for more details:

    http://microsoft.com/workshop/author/dhtml/dude/dude040698.asp

* to change the size of a frameset, you'd do the following:
  given the following frameset:

    <FRAMESET ID="fra0" FRAMESPACING=0 ROWS="100, *">
     <FRAME SRC="fra1.htm" NAME="fra1" SCROLLING="auto">
     <FRAME SRC="fra2.htm" NAME="fra2" SCROLLING="auto">
    </FRAMESET>

  this code called within one of the frames would resize the frames
  to 50%,*

    top.fra0.setAttribute("rows", "50%, 50%");

  see the DHTML references within the Site Builder Workshop for more:

     http://microsoft.com/workshop/author/

Sorry I can't provide more details about how this stuff is done in NN4. I'm
sure someone here can fill in the blanks.

</stuart>

<request>
 <item>no email copies of posts to clj</item>
 <item>no js questions via email; post to clj</item>
</request>

<reminder>
 java != javascript
</reminder>
Technical Details
Message-ID: <70or37$47n@news.dns.microsoft.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <362FA857.DBE853A5@hotmail.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d4a5,511ef3fc729b1521
X-Google-Attributes: gid10d4a5,public
X-Google-Thread: 10731d,511ef3fc729b1521
X-Google-Attributes: gid10731d,public
X-Google-Thread: fb3cb,511ef3fc729b1521
X-Google-Attributes: gidfb3cb,public
From: "Stuart Updegrave" <syzygy@seanet.com>
Subject: Re: jscript help sought for adding writing or table cells
Date: 1998/10/22
Message-ID: <70or37$47n@news.dns.microsoft.com>
X-Deja-AN: 404147471
References: <362FA857.DBE853A5@hotmail.com>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Organization: Microsoft Corp.
Newsgroups: comp.lang.javascript,microsoft.public.scripting.jscript,comp.lang.JavaScript,borland.public.intrabuilder.javascript