[ic] HELP in JAVASCRIPT POP UP

Götz Verdieck interchange-users@interchange.redhat.com
Thu Mar 28 06:49:01 2002


> Hi,
> 
> Anybody knows how can i implement a Javascript pop up for view the selected
> products images or images and description  more big. In a new window pop up
> for each product. This is because i think that would be a great
> charasteristic for monstrate the products in more detail for the customers.
> 
> Thank's in advance
> 
> _______________________________________________
> interchange-users mailing list
> interchange-users@interchange.redhat.com
> http://interchange.redhat.com/mailman/listinfo/interchange-users
> 

Hi,


I use this code :
in the page header:

<script language="javascript">

var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollba
rs='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}
</script>

and in the page:
  
<a href="[area href=yourpage form="mv_order_item=[item-code]"]"
onclick="NewWindow(this.href,'name','400','300','yes');return false"> <input
type=image src="__THEME_IMG_DIR__btn_rab_vpe.jpg"></a>

This will open a window in the middle of the screen.
Just change the href and form values.
It works with IE/NS  Win/Mac.




Best regards

Goetz Verdieck

==============================
Goetz.Verdieck@com4office.de