js window link

sitesupport's picture

He has: 190 posts

Joined: Jun 2007

im editing a .js file to a widget im adding some stuff to. my question is how do you make a link (in the.js file) popup a certain size and not resizeable?

sample of the script:

if(fwuser.loggedIn){
this.HTML += '<span style="float:right; padding-right:5px; padding-top:-4px; padding-bottom:4px;"><b>' + fwuser.username + '</b> ('+this.userType+')</span>';
this.HTML += '<span style="float:left; padding-left:5px; padding-top:-4px; padding-bottom:4px;"><a href="http://www.freewebs.com/fwstyles" target="_blank"><img src="http://www.freewebs.com/fwstyles/community.png" border="0" /></a><a href="http://www.freewebs.com/fwstyles/chat.html" target="_blank"><img src="http://www.freewebs.com/fwstyles/chat.png" border="0" /></a><a href="http://www.sitesupport.co.nr" target="_blank"><img src="http://www.freewebs.com/fwstyles/ss.png" border="0" /></a></span><a ' + this.getPngStyle('logOut.png', 51, 16) + 'href="http://link.members.freewebs.com/logout.jsp?next=' + encodeURIComponent(location) + '"></a>';
if(this.adminMode)
this.HTML += '<a id="toggleAdminLink" ' + this.getPngStyle((Cookie.get(this.id + 'adminMode') == 'hide' ? 'show' : 'hide') + 'Admin.png', 82, 16) + 'href="" onclick="fw.Instances.get(\''+this.containerID+'\').toggleAdminMode(); return false;"></a>';
}

anyway i want to make the chat page as described above, any help?

teammatt3's picture

He has: 2,102 posts

Joined: Sep 2003

This may help you create the perfect popup http://javascript.internet.com/generators/popup-window.html.

sitesupport's picture

He has: 190 posts

Joined: Jun 2007

thanks for the reply,
iv tried all the popup generators, none work. Is there a code like text ?
This is kinda confusing, would it help if i gave the link to the entire script?

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.