Hello, as the ultra noob in here trying to recreate his website to look a little less noobish, I was trying to find a way to make a pop up window for my illustrations/designs that are a specific height with a close button.
Is this a javascript function? or is it done through another another way?
Thanks in advance. :thumbsup:
chilipie
12-02-2004, 08:56 PM
So you want a chromeless window? (A window with not all the menu bars etc. you would have in a normal browser.) You can open a new window with HTML (target="_blank" in the <a> tag), but do have it set at a specific height you need to use JavaScript.
bradyj
12-02-2004, 09:16 PM
Please search the javascript section of the forum, we have many answers to this question.
Personally, you may find that it doesn't work to well -- users like me who have pop-up blockers installed can usually block it pretty good. Either way, it tends to annoy users more than anything.
]|V|[agnus
12-02-2004, 09:41 PM
Creating a popup window:
Step 1: Form a pact with Satan
This concludes our tutorial. Thank you.
chilipie
12-02-2004, 09:46 PM
|V|[agnus']Creating a popup window:
Step 1: Form a pact with Satan
Damn you're funny ]|V|[agnus] :p LMAO.
vizualbyte
12-02-2004, 10:05 PM
magnus, lol
I think i might have worded it wrong. Then again, maybe not.
Would it still be considered a pop up window if someone clicks on a thumbnail pic of my design to open a new "chromeless window" like chillipie said? Would that chromeless window be blocked because it uses some sort of javascript?
I am just trying to make life easier for the viewer, not annoy them.
Thanks again
]|V|[agnus
12-02-2004, 10:09 PM
That is a popup window, yes, and could likely be blocked by popup blocking software.
For the record: popups are not inherently evil. I was just joking, and you gathered at least that much, thankfully. :)
Anyway... it's just a decision you gotta make. The popup-for-enlarged-image method can work fabulous, but loading in the same window can too. It all depends on how you implement it. Personally, I'm a bit anal retentive and I also like the idea of respect the choices of users, so I try to stay away from popups these days.
mothra
12-02-2004, 10:27 PM
You might want to look into doing it using javascript DOM. Without a ton of work you can create a <div> to hold your image(s) in and control the size and display properties of your div from javascript.
llizard
12-02-2004, 10:36 PM
However you do it, please make sure that the link will still open properly even if javascript is disabled.
<a href=http://www.codingforums.com/archive/index.php/"http://link" title="link name"
onclick="window.name='main';
window.open(this,'popup','scrollbars=1,resizable=1,width=590,height=400,left=20,top=20');
return false;"
onmouseover="setAttribute('title', this.title + ' opens in a popup')">link</a>
http://llizard.crosswinds.net/cwc/popuplinks.html
vizualbyte
12-03-2004, 10:11 PM
thanks llizard and mothra
I am in the process of learning javascript. I hope its not that hard as it looks. I am a designer/illustrator crossing into the website development world. I hope to learn many things from everyone in here :p