GeorgeS
Posts: 206
|
| Posted: 10/16/2004, 7:06 PM |
|
This is what I have now:
<a href="{link}" onclick="openWindow('{link}','upload','toolbar=yes,location=yes,width=500,height=500')">mylink</a>
If I change href="{link}" to href="#" in HTML
CCS always deletes link control when I click F8.
What is the proper way of creating popup links in CCS?
Thank you
_________________
GeorgeS |
 |
 |
E43509
Posts: 283
|
| Posted: 10/16/2004, 9:00 PM |
|
Perhaps this example will help http://examples.codecharge.com/ExamplePack/PopUpList/PopUpList.php
|
 |
 |
GeorgeS
Posts: 206
|
| Posted: 10/16/2004, 9:13 PM |
|
Thanks, but this example doesn't have pop-up windows.
_________________
GeorgeS |
 |
 |
Tuong Do
|
| Posted: 10/17/2004, 10:59 PM |
|
Try this
function popwindow(mypage,myname,w,h,scroll,pos){
var win=null;
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h-100)/2:100;}
else if((pos!="center" && pos!="random") ||
pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=yes,menubar=no,toolbar=no,resizable=yes';
win=open(mypage,myname,settings); win.focus();}
<a href="{link}" onclick="popupwindow(this.href, 'popup1', '800',
'520','yes','centre');return false" </a>
"GeorgeS" <GeorgeS@forum.codecharge> wrote in message
news:24171d3adadf16@news.codecharge.com...
> This is what I have now:
>
> <a href="{link}"
> onclick="openWindow('{link}','upload','toolbar=yes,location=yes,width=500,height=500')">mylink</a>
>
>
> If I change href="{link}" to href="#" in HTML
> CCS always deletes link control when I click F8.
>
> What is the proper way of creating popup links in CCS?
>
> Thank you
>
> _________________
> GeorgeS
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
|