Small HTML query
Discussion
I must be the devil's pervert then
Code for the smilies legend popup, ripped from the Post Reply source code:
<!--
function openWindow(url) {
popupWin = window.open(url, 'new_page', 'width=450,height=400,scrollbars=yes')
}
// -->
then
<a href="Javascript: openWindow('h ttp://ww w.pistonheads.com/gassing/legend.htm')" target="_self"><small>Smiles legend</small></a>
(remove blanks from url)
Code for the smilies legend popup, ripped from the Post Reply source code:
<!--
function openWindow(url) {
popupWin = window.open(url, 'new_page', 'width=450,height=400,scrollbars=yes')
}
// -->
then
<a href="Javascript: openWindow('h ttp://ww w.pistonheads.com/gassing/legend.htm')" target="_self"><small>Smiles legend</small></a>
(remove blanks from url)
Edited by Bodo on Friday 2nd March 10:17
tigger1 said:
jamieboy said:
tigger1 said:
Bodo said:
You'll need javascript to specify the size.
Pervert.
Jacascript...eeew.
Yes...but Javascript. Work of the devil.
You could write a nice little bit of script that parsed an HTML document looking for anchor tags with specific targets/custom attributes/let you just define the data in an XML island somewhere/etc, having this script then take "normal" anchors that open with a "_blank" (or named) windows, and change them to fixed-size (menu/tool-bar-less) popups. Accessible, guaranteed to work on every browser, gives the experience you want to upstream browsers, search-engine-optimisation friendly, graceful degradation, etc.

zaktoo said:
You could always assume that the user would resize the window himself, should he want to. Bugs the crap out of me when web sites assume what size *I* want *my* windows to be.... 

As a techie at heart, I agree (but you should just disable that in the JavaScript config dialog, then).
As a business person, I don't agree. There are good business cases for guiding the average (dumb) user in the way that you want - adding black ink to the books through a process that is more aligned to the "average" user than the "exceptional" user is going to suit most businesses!
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff



