Lifestyle

TOPICS:

1/18/05
Locked

Previous

PAGE: 

1 ... 

360 | 361 | 362

 ... 888

Next

cyanide81

cyanide81

Temecula, CA
August 2002

JAN 17, 2005 07:47 PM

does anyone know the html code to have pics pop up, instead of going to another page.

for example, the SG sets pop up a new window, and u can cycle thru the pics then close the window when you are done.

i dont know if im just completely oblivious, but ive been looking thru all the html tutorial websites, and i cant seem to find it whatever

bredoteau

bredoteau

I'm lost
April 2004

JAN 17, 2005 07:52 PM

Try doing a search for a javascript.

cyanide81

cyanide81

Temecula, CA
August 2002

JAN 17, 2005 07:54 PM

i did that, but i dont know the name of the code used to do this, so i dont know what to look for

punk

punk

Phoenix, AZ
January 2004

JAN 17, 2005 07:55 PM


<script language=Javascript>
function longPopUp( page, width, height, top, left ) {
var yes = 1;
var no = 0;
var menubar = no; // The File, Edit, View Menus
var scrollbars = yes; // Horizontal and vertical scrollbars
var locationbar = no; // The location box with the site URL
var directories = no; // the "What's New", "What Cool" links
var resizable = no; // Can the window be resized?
var statusbar = no; // Status bar (with "Document: Done")
var toolbar = no; // Back, Forward, Home, Stop toolbar

features = "" +
"width=" + width + "," +
"height=" + height + "," +
"top=" + top + "," +
"left=" + left + "";
features += "" +
(menubar ? ",menubars" : "") +
(scrollbars ? ",scrollbars" : "") +
(locationbar ? ",location" : "") +
(directories ? ",directories" : "") +
(resizable ? ",resizable" : "") +
(statusbar ? ",status" : "") +
(toolbar ? ",toolbar" : "");

window.open( page, 'fullPopup', features );
}
</script>

<a href="javascript:longPopUp( 'blank.html', 300, 200, 50, 50 )">win open</a>


That one is a bit bulky for what it is, but it's easier for new folks to grasp.

punk

punk

Phoenix, AZ
January 2004

JAN 17, 2005 07:58 PM

Tell you what, check this site out. It has quite a few neat little JavaScripts on it. There's also a shorter version of the one I posted above under JavaScript > Windows > Open

nobodaddy

nobodaddy

Burlington, VT
August 2003

JAN 17, 2005 08:00 PM

not exactly what you're asking for, but check out this program, it's really great.

venomkid

venomkid

I'm lost
January 2003

JAN 17, 2005 08:03 PM

Yeah. What punk said, onclick and window.open, prettymuch. Probably with some server side code underneath the page it calls to make the prev/next and selection links, but there are lots of ways to handle that.

cyanide81

cyanide81

Temecula, CA
August 2002

JAN 17, 2005 08:06 PM

thanks!

ebm

ebm

Seattle, WA
August 2003

JAN 17, 2005 11:06 PM

try TARGET="window2" within your <A HREF>

RockZombie

RockZombie

Denver, CO
December 2003

JAN 17, 2005 11:17 PM

Try Web Developers group. There are some awfully handy folks in there.

[Edited on Jan 18, 2005 by RockZombie]