Happy Spawning?? Now I feel like a fish swimming upstream. Thanks, guys. I
guess I have enough information now to pick up what I need. I couldn't
think of a good search word, so didn't find much direction. Both of you have
been very helpful. Most of the time I create little tutorials on my website
for these two graphics forums to save their bandwidth, so I just send my
website's URL, but it will be better to have the pop-out picture with the
text on their forums. Again, Thanks.
DSG
.........................................
: DSG wrote:
: > May 1, 2006
: > Here is a sample of what I've tried to explain:
: >
http://www.mountain-toursltd.com/aaenglish/kindergarten.htm
: > Click on Photo Gallery. The picture(s) pop out of the web into its
: > own frame. That's what I want to do.
:
: Hi DSG,
: This page uses spawnJimcoPopup.
: Here is the code to open one picture. (I have placed each parameter on a
: separate line for ease of reading):
: onclick="spawnJimcoPopup
: ('../skischools/alibaba/index.html'
: ,'alibabainvernoestate'
:
,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no'
: ,'450'
: ,'700'
: ,'center'
: ,'center'
: ,'pixel')
: ;return false;">
:
: Obtain it from:
http://www.jimcosoftware.com/ (or just copy the code
below)
:
: It is a very useful tool. The function is:
: // Jimco Add-ins Spawn JavaScript
: // This script is freely redistributable.
: function spawnJimcoPopup(url, name, options, h, w, x, y, scaleType)
: {
: var windowOptions;
: if (scaleType == 'percent')
: {
: w = (w * screen.availWidth) / 100;
: h = (h * screen.availHeight) / 100;
: }
: if (x == 'center')
: {
: x = (screen.availWidth - w) / 2;
: y = (screen.availHeight - h) / 2;
: }
: windowOptions = options + ',width=' + w + ',height=' + h + ',left=' + x
+
: ',top=' + y;
: newWindow = window.open(url, name, windowOptions);
: newWindow.focus();
: }
: Its parameters are:
: url: the file you want to open
: name: its name - can be blnak,
: options: various options such as
:
'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no'
: Generally leave these as default
: h: height of the window
: w: width of the window
: x: position of the window in x direction (from the left)
or
: 'center'
: y: position of the window in x direction (from the top) or
: 'center'
: scaleType: 'percent' or 'pixel' (units for h and w)
:
: If x is 'center' the window centres in both directions (regardless of what
y
: is)
: I find it useful to change the function to read
: function spawnJimcoPopup(url, name, options, h, w, x, y, scaleType)
: {
: if (scaleType == 'percent')
: { h = (h * screen.availHeight) / 100
: w = (w * screen.availWidth) / 100 }
: if (x == 'center')
: x = (screen.availWidth - w) / 2
: if (y == 'center')
: y = (screen.availHeight - h) / 2
: options += ',width=' + w + ',height=' + h
: + ',left=' + x + ',top=' + y
: var newWindow = window.open(url, name, options)
: newWindow.focus()
: }
:
: Then the window can be centered in x and y directions independently. I use
: it this way on my site. (Clickon a picture at top left or top right of the
: home page - it opens centred in x direction, not in y.)
: --
: Happy spawning,
: Trevor L.
: Website:
http://tandcl.homemail.com.au
:
: