Logo

Links, Tutorials And Scripts


An Annoying Tiny Nw54 Dialog Box

pops up when one hits the Insert Object Button with InternetExplorer in Nw54 Forums.
This is only a feature when you are Logged-in to Network54.
Here's shown how I increased the Dialog box in my forum.
Hit the buttons to get a meaning of what I'm describing here :-)

Original:

my changes:

 

 

<SCRIPT LANGUAGE="JavaScript">
<!--
function myDialog() {
var url;
var name;
var type;
}

function doinsert_object() {
myDialog.url = "";
myDialog.name = "";
myDialog.type = "";
url = "http://www.network54.com/Apps/dialog.php3?url=/Browser/";

var arr = showModalDialog( url,myDialog, "font-family:Verdana; font-size:12; dialogWidth:80em; dialogHeight:35em; " );

if(arr) {
str = myDialog.url;
if (myDialog.type == 'votelets')
document.all.message.value += 'votelet://' + myDialog.url + ' ';
else
document.all.message.value += 'http://www.network54.com' + str + ' ';
}
}
if (document.URL.search("post") != -1){
document.write ("<button class='i' onclick='doInsert_object()'><img src=http://www.network54.com/images/icons/notice.gif> Insert Object </button><BR>");
}
// -->
</SCRIPT>

Above all I disabled the original Insert Object Button in my CSS-style-sheet.
<style type="text/css">
<!--
#postform button { display: none; }

and gave a design to the new, own button
button.i {
cursor:pointer;
font-family:Comic Sans MS;
color:#0000ff;
text-decoration:none;
background:#BFDDF2;
}

-->
</style>

I've put the changed script to my forum-table (Header).

    1/2004 © Ed Home/BilgeRat

Top