/    Sign up×
Community /Pin to ProfileBookmark

Trouble with Auto-Resize Popup windows

ok so I’m trying to get my thumbnailed images to popup and autoresize the window to the image size
I’m using Dreamweaver MX and can use the behaviors to get a regular popup and this is the link code it creates

<a href=”javascript:;” onClick=”MM_openBrWindow(‘Images/Funny/bleachers_1.jpg’,”,’resizable=yes’)”><img src=”Images/Funny/th_bleachers_1.jpg” alt=”” name=”thumbs1″ width=”161″ height=”189″ border=”0″></a>

the script I found for it is here [url]http://www.codelifter.com/main/javascript/autosizeimagepopup.html[/url]

now with this script it gives this for the link code

<a href=”javascript:popimage(‘http://SomeSite.com/Someimage.gif’,’Some Title’)”>
<img src=”Yourimage.gif” border=”0″>
</a>

now can I just add the actual script part to my page and leave my links intact the way they are? they don’t seem to be all that different.

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@vwphillipsJul 25.2004 — I have just completed a code to auto resize thumbnail images.


http://vicsJavaScripts.org.uk/ImageBatchReSize/ImageBatchReSize.htm

It should not be too much trouble to add a facility to add a popup to original size or specified size.

I will get on it, plase answer this so I can find the post again
Copy linkTweet thisAlerts:
@vwphillipsJul 25.2004 — not much traffic today so I found it again

did not wish to use the posted code (copyright) so started fresh

I think this should do what you want and has more flexibility

Tested with IE and Mozilla FF

did not wish to post the code as copying it currupts the code so have uploaded it to

http://homepage.ntlworld.com/vwphillips/ImgPU1.htm


let me know if it needs any changes
Copy linkTweet thisAlerts:
@NoodleauthorJul 26.2004 — thanks for the help that should work
×

Success!

Help @Noodle spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...