Hi,
I'm using this script to open the enlarge version of a thumbnail image, in a new window: <a href="images/enlarge/20ans_1.jpg" onclick="window.open (this.href, 'child', 'height=400,width=600'); return false">
But the pictures opens smaller than the window and I have to click on the miage (zoom tool) to get the full size.
What's wrong ?
Thank you
Philippe
symphil
0
Newbie Poster
Recommended Answers
Jump to Postwindow.open will not work in the majority of users browser, they will not turn off the popup blocker for your potentially malicious site
use a layer in the existing page to give the appearance of a new window without being blocked
Jump to Postyes a hidden div, or a div that you toggle z-index -100 to hide, +100 to show,
<button onClick="showIt();">Important Information</button><script type="text/javascript"> <!-- (document.getElementById) ? dom = true : dom = false; function hideIt() { if (dom) {document.getElementById("layerm1").style.visibility='hidden';} if (document.layers) {document.layers["layerm1"].visibility='hide';} } function showIt() { if (dom) {document.getElementById("layerm1").style.visibility='visible';} …
All 5 Replies
almostbob
866
Retired: passive income ROCKS
symphil
0
Newbie Poster
almostbob
866
Retired: passive income ROCKS
symphil
0
Newbie Poster
almostbob
866
Retired: passive income ROCKS
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.