Expand-Image without JavaScript (Technics)
I think that it would be a good idea to set the expand-image and the preview-bubble 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.
(1)
<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">
Now
<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.
--
Cheers,
Alfie (Helmut Schütz)
BEBA-Forum (v1.8β)