ID:145023
 
Code:
 obj
card=1
verb
Info()
var/popup = {"<BODY BGCOLOR="Teal" alink="red"><center><b><font color = Red><center>[src.name]<b><font color = Drak Blue><center>Stars:[src.stars]<center>[src.text]<center><b><font color = Dark Blue><center> [src.attack]/[src.defense]</b><br><br><br><font size = 1><a href=?close>Close Window</a>"}
usr<<browse(popup,"window=Announcement,size=300x300,can_close=0")
Take()
set src in oview(0)
view()<<"[usr] takes [src]."
Move(usr)


Problem description:

The Pop Up Box When i Click Close Doesnt Close Whats Wrong>?
usr<<browse(popup,"window=Announcement;size=300x300;can_close=0")


O-matic
In response to O-matic
How do i fix it :S it still wont close when i click close ???
In response to Gebsbo
client/Topic(href)
if(href=="?close")
src << browse(None,"window=Announcement")


Do not copy/paste this is an example so i only wrote it up quickly.
In response to A.T.H.K
Doesnt work :/
try putting the can_close=1
In response to Gebsbo
Hope ya put the first argument of browse() as a null value >.> the 2nd argument should be the window name... if it is null, I think all popups will be closed (assuming you are using a link to close the popup window)

- GhostAnime
In response to Gebsbo
Oh, wait - sorry. I misread your post, I thought you meant the pop up wouldn't show up at all.

Err, if you want it being closeable you will need to set <code>can_close</code> to 1. Actually, there isn't any need to define <code>can_close</code>, as the default is 1.

So: <<browse(popup,"window=Announcement;size=300x300")</ code> will do fine.

O-matic
In response to O-matic
Thanks it works
In response to Gebsbo
I assumed you wanted a link in the text since you but this in

<a href=?close>Close Window</a>
...
In response to A.T.H.K
Yeah, that's not what he meant. Though, it's best to put that in single text strings, so:
<a href='?close'>Close Window</a>


O-matic