|
Posted by dorayme on 08/22/05 04:49
> From: Els <els.aNOSPAM@tiscali.nl>
> Shabam wrote:
>
>> Get off my thread you spammers.
>
> Excuse me? This thread was never yours. (or anyone's for that matter)
> You posted a message to which so far no one has replied, and because
> of a little mishap when Dorayme posted a new message, this thread
> erroneously is attached to your message. There's nothing we can do
> about it now though. We can't detach it.
>
> Also, we're not spammers. We're residents here. We belong here, have
> no place else to go :P
>
> However, since you're such a nice and humble person, and your questin
> had the word html in it, I'll reply to your question, in the
> assumption at least /you/ still know what you asked:
>
> No, you don't need to place code before the starting <html>.
> Also, you don't need to pop up a window. Your visitor can do that for
> himself. Plus you don't need frames.
>
> All that aside though: you have a piece of code to initiate a popup,
> and you've been told to insert it at the top of your source code,
> right? Well, whoever told you told you wrong. I'd say insert the code
> in the source of one of the pages that are loaded into your frameset,
> not in the frameset itself.
> Also, place the code in the right place, /not/ above <html>.
> I don't know enough about JavaScript to be able to tell you whether
> the code should go before </head> or after <body> though.
> You'd best ask that in comp.lang.javascript.
>
> --
> Els
>
And since I seem to have caused some trouble, by way of penance, I can
add that I have used JS on one my only remaining framed site - as Els
says to do - in the source of the actual pages. And further, within the
head. In my case, it was for folk to be able to get pictorial info on
products without losing their place, by clicking a link knowingly they
get to see a small pop up window with a bit of info and even clickable
links and pics within, eg for a review closeup of a particular line of
products. The link in the body of the source must have references to
the JS window etc. But the main functions work well and are neatest in
the head (unless you have a real complex lot, in which case, a separate
..js file, linked or referenced in the head is the way to go).
dorayme
Navigation:
[Reply to this message]
|