Expand-Image without JavaScript (Technics)

by Alfie ⌂ @, Vienna, Austria, Friday, March 23, 2007, 00:09 (4853 days ago) @ Alex
edited by Alfie, Friday, March 23, 2007, 00:41

I think that it would be a good idea to set the expand-image [image] and the preview-bubble [image] with 'document.write' [...]

You're right! The only thing is: there's a lot of overhead with the document.write method.

True. Although the script would reside in the browser's cache, unfortunatelly I guess it would call for setting an unique 'id' for every displayed thread.

Another point: the code does not validate yet.


<meta http-equiv="Content-Script-Type" content="text/javascript" />

should be inserted in the <head> of template.html

(2) multiple

<a href="#" ...</a>

referring to a nonexisting anchor

(1) Is trivial.
(2) Use an anchor for an element which exists on every page, e.g.,

<div id="top">


<a href="top" ...</a>

should do the job (and no harm if JS is not onboard).
For details (although CSS instead of JS) see Ingo Turskis Infobox.

Alfie (Helmut Schütz)
BEBA-Forum (v1.8β)

Complete thread:

 RSS Feed of thread

powered by my little forum