Individual lines of text

K

kolnikoff

Hi,

Just asking if it is feasible....

Can js bring on lines of text one at a time on mouse clicks (dulling
down the previous text), like Powerpoint?

Cheers

Kol
 
E

Evertjan.

kolnikoff wrote on 06 dec 2008 in comp.lang.javascript:
Hi,

Just asking if it is feasible....

Can js bring on lines of text one at a time on mouse clicks (dulling
down the previous text), like Powerpoint?

feasible
 
K

kolnikoff

Evertjan. said:
kolnikoff wrote on 06 dec 2008 in comp.lang.javascript:


feasible

Hi Evertjan.,

Next question coming up.... :eek:)

Do you have to use the 'header' area when doing this or can it all be
done within the <body></body> tags?

Reason - we use a Learning Content Management System (LCMS) that only
allows us to enter code in the 'body' area to produce our content (via
templates).

Cheers

Kol
 
E

Evertjan.

kolnikoff wrote on 06 dec 2008 in comp.lang.javascript:
Next question coming up.... :eek:)

You specifically JUST asked if it was feasable. :eek:(
Do you have to use the 'header' area when doing this or can it all be
done within the <body></body> tags?

Reason - we use a Learning Content Management System (LCMS) that only
allows us to enter code in the 'body' area to produce our content (via
templates).

Seems to me the learning is not asking someone else, but trying some code
yourself and testing it out, and ONLY if you get stuck, this is the place
to ask, showing where you went wrong in your code.
 
K

kolnikoff

Evertjan. wrote:

You specifically JUST asked if it was feasable. :eek:(


Seems to me the learning is not asking someone else, but trying some code
yourself and testing it out, and ONLY if you get stuck, this is the place
to ask, showing where you went wrong in your code.

Hi Evertjan.,

erm, what's the point of learning if the tool I use will not allow it?
So, if you have to code in the 'header' area it will not be worth it.

Thanx for your help mate.

Cheers

Kol
 
S

SAM

Le 12/6/08 6:43 PM, kolnikoff a écrit :
What is PowerPoint ?
Ho! the thing I can't see because I haven't M$ Office ?
Next question coming up.... :eek:)

Do you have to use the 'header' area when doing this or can it all be
done within the <body></body> tags?

Reason - we use a Learning Content Management System (LCMS) that only
allows us to enter code in the 'body' area to produce our content (via
templates).

I think you can put your JS where you want.
from moment you don't want to use it before having produced it.

The only problem with your "templates" : does that
loads/interprets/launches the JS you've just written ?

Did you lost your NotePad ?
that you can't write yourself pages to try locally with yours browsers ?
(putting your JS in the head to be cleaner)
 
E

Evertjan.

kolnikoff wrote on 06 dec 2008 in comp.lang.javascript:
Evertjan. wrote:



Hi Evertjan.,

erm, what's the point of learning if the tool I use will not allow it?
So, if you have to code in the 'header' area it will not be worth it.

Wrong, you will have to try it for yourself!

It is not about "having code" but programming.
Thanx for your help mate.

Perhaps you do not understand yet, but I did help you.

Try to experiment,
programming is not asking, but trying out and debugging.

In fact you lied to me,
expressing that you were not going to ask in your OP.
 
T

The Natural Philosopher

kolnikoff said:
Hi Evertjan.,

Next question coming up.... :eek:)

Do you have to use the 'header' area when doing this or can it all be
done within the <body></body> tags?

Reason - we use a Learning Content Management System (LCMS) that only
allows us to enter code in the 'body' area to produce our content (via
templates).

you can insert script almost anywhere. The target of that script is
normally in the body.
 
K

kolnikoff

Evertjan. wrote:

<snip>

Hi Evertjan.,
Wrong, you will have to try it for yourself!

ah, ok, that's cool - I'll go away and waste my time doing something
that is of no benefit. I guess you must do lots of things that do not
help you one little bit, all for the experience of 'having done it' -
sorry mate, that ain't for me.
It is not about "having code" but programming.

Sorry mate, 'have to code' is another way of saying 'programming'. So
when I said the above it means - if I have to 'type' js in the header it
will not be worth 'trying it myself' because I don't have access to the
header area of the page.
Perhaps you do not understand yet, but I did help you.

I know you did, I'm just messing with you :eek:)
Try to experiment,
programming is not asking, but trying out and debugging.

I'll go and have a play; would have saved an awful lot of time and
effort to have got some pointers along the way.
In fact you lied to me,
expressing that you were not going to ask in your OP.

With your succinct answer to my first post you knew I was gonna come
back with more - didn't you?

First trip here and I'm lovin' it already.

Cheers

Kol

btw - don't be too serious, life is fun!
 
D

dhtml

kolnikoff said:
Hi,

Just asking if it is feasible....

Can js bring on lines of text one at a time on mouse clicks (dulling
down the previous text), like Powerpoint?

You could mark up lines with an element. This would give you some sort
of object to attach a callback to.

<div>I'm line one. </div>
</div>This one is line two</div>

The problem is that text is now constrained in those lines, so editing
becomes difficult.

Layout changes, font changes and zoonimg would either result in wrapping
or an overflow.

Garrett
 
K

kolnikoff

SAM wrote:

<snip>

Hi SAM,
What is PowerPoint ?
Ho! the thing I can't see because I haven't M$ Office ?

:eek:)

Unfortunately the LCMS will currently only show a whole page of text on
loading. What I'm looking for is to bring on the text one block at a
time (without loading another page) so the user doesn't 'read ahead'.

I think you can put your JS where you want.
from moment you don't want to use it before having produced it.

mmmm, sounds good, may be worth exploring js a bit further :eek:)
The only problem with your "templates" : does that
loads/interprets/launches the JS you've just written ?

This is something I'll try next week at work, do the good old 'Hello
World' to see if it works.
Did you lost your NotePad ?
that you can't write yourself pages to try locally with yours browsers ?
(putting your JS in the head to be cleaner)

Yup, tried a few examples here at home and they work ok. Not going to
use the 'in the head' method as our templates do not allow us to write
there.

Thanx for your help

Cheers

Kol
 
K

kolnikoff

The Natural Philosopher wrote:

<snip>

Hi The Natural Philosopher,
you can insert script almost anywhere. The target of that script is
normally in the body.


Sounds good if I can put it in the body, will go explore....

Cheers

Kol
 
E

Evertjan.

kolnikoff wrote on 06 dec 2008 in comp.lang.javascript:
Sorry mate, 'have to code' is another way of saying 'programming'. So
when I said the above it means - if I have to 'type' js in the header it
will not be worth 'trying it myself' because I don't have access to the
header area of the page.

Wat nonsense, you are talking clientside code, so you do not need to
involve a server to test an html file cum javascript.
With your succinct answer to my first post you knew I was gonna come
back with more - didn't you?

No, but I suspected you were, lying that is.
 
K

Kenny

kolnikoff said:
Evertjan. wrote:

<snip>

Hi Evertjan.,



ah, ok, that's cool - I'll go away and waste my time doing something
that is of no benefit. I guess you must do lots of things that do not
help you one little bit, all for the experience of 'having done it' -
sorry mate, that ain't for me.



Sorry mate, 'have to code' is another way of saying 'programming'. So
when I said the above it means - if I have to 'type' js in the header it
will not be worth 'trying it myself' because I don't have access to the
header area of the page.



I know you did, I'm just messing with you :eek:)



I'll go and have a play; would have saved an awful lot of time and
effort to have got some pointers along the way.

Try comp.lang.lisp. We abuse noobs *and* help them.
With your succinct answer to my first post you knew I was gonna come
back with more - didn't you?

First trip here and I'm lovin' it already.

It get's better.
Cheers

Kol

btw - don't be too serious, life is fun!

I think you missed this NG's reassignment of "fun" to "pissing all over
outsiders", they're having a blast.

hth,kxo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,129
Messages
2,570,770
Members
47,326
Latest member
Itfrontdesk

Latest Threads

Top