| Forum Home | ||||
| Press F1 | ||||
| Thread ID: 29075 | 2003-01-09 06:07:00 | how do i make a link open in a new window with a custom height and width? | TiM©:*) (977) | Press F1 |
| Post ID | Timestamp | Content | User | ||
| 112371 | 2003-01-09 06:07:00 | ? sorry my last post didnt make sense Tim |
TiM©:*) (977) | ||
| 112372 | 2003-01-09 08:25:00 | Would you set height, width or variable height and width? This is a bit of javascript, I hope you are not confused, it can have one pop-up or two, I made it up as I went along, if you like I could post working code all you need to do is to call the function up, with the data. function popup2(url,url2, name,name2, width1,width2, height1,height2) { settings= "toolbar=no,location=no,directories=no,"+ "status=no,menubar=no,scrollbars=no,"+ "resizable=no,width="+width1+",height="+height1; MyNewWindow=window.open(url,name,settings); if (height2 != 0){ settings2= "toolbar=no,location=no,directories=no,"+ "status=no,menubar=no,scrollbars=no,"+ "resizable=no,width="+width2+",height="+height2; MyNewWindow=window.open(url2,name2,settings2); } } |
E.ric (351) | ||
| 112373 | 2003-01-09 09:33:00 | thanks | TiM©:*) (977) | ||
| 112374 | 2003-01-09 09:49:00 | Sorry that should read Would like to use a set height, width or variable height and width? also sorry I forgot to add This function is called up by two different lines, one line pops up one pop up and you guess it, the other line pops up two pop up, because one pop up covered the other pop up, I had to make the bottom pop up bigger than the top pop up, this posting was not sponsored by the words "pop up" :( |
E.ric (351) | ||
| 1 | |||||