We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Locked Topic
[ C ] Adding Close Button
Topic Started: Feb 2 2014, 01:59 AM (264 Views)
AwakenKisekiX
Member
[ * ]
Board Address: http://s1.zetaboards.com/MCAC/index/
Board Software: ZetaBoards
Description: I Would Like A Close Button To My Music Box.

Code atm:
Code:
 
<div class="category floatbox ghost-floatbox" id="drag" style="
width:320px;
left:auto;
bottom:0;
right:10px;
top:auto;
margin:0;">
<table class="cat_head"><tr><td>
<h2>Music Box</h2>
</td></tr></table>
<table style="height:100px;overflow:hidden;" cellpadding="0" cellspacing="0">
<tr>
<td style="vertical-align:top;">
<embed src='http://www.shoutcast.com/media/popupPlayer_V19.swf?stationid=http://yp.shoutcast.com/sbin/tunein-station.pls?id=194257&play_status=0' quality='high' bgcolor='#ffffff' width='310' height='100' name='popupPlayer_V19' align='middle' allowScriptAccess='always' allowFullScreen='true' type='application/x-shockwave-flash' pluginspage='http://www.adobe.com/go/getflashplayer' ></embed>
</td>
</tr>
</table>
</div>

<script type="text/javascript">
$.get(main_url + 'search/?c=5', function (data) {
$('form:has(select[name="fid"])', data).prependTo('#submenu').css('float', 'left').find('select[name="fid"]').prepend('<option selected="selected" style="font-style: italic">Forum Jump:</option>');

$('#submenu small').hide();

$('#submenu select').change(function () {
$(this).val();
$('#submenu small button').click();
});
$.get(location.href);
});
</script>


I've tried the code from[url=if.invisionfree.com/topic/5128295/]this[/URL] but when i try pressing x, it doesnt close. It might be because i'm using embed so i would like some help. thanks
Offline Profile Goto Top
 
Ferby
Member Avatar
Developer
[ *  *  *  *  * ]
Okay I may get in trouble from the creator if he's still active because in order to make this simplier, I've edited the original code.

Replace the original code with this...
Code:
 
<div name="music-box" class="category floatbox ghost-floatbox" id="drag" style="width:320px;left:auto;bottom:0;right:10px;top:auto;margin:0;">
<table class="cat_head"><tr><td>
<h2 onmousedown="toggleMusicBox()" style="cursor:pointer">Music Box</h2>
</td></tr></table>
<table style="height:100px;overflow:hidden;" cellpadding="0" cellspacing="0">
<tr>
<td style="vertical-align:top;">
<embed src='http://www.shoutcast.com/media/popupPlayer_V19.swf?stationid=http://yp.shoutcast.com/sbin/tunein-station.pls?id=194257&play_status=0' quality='high' bgcolor='#ffffff' width='310' height='100' name='popupPlayer_V19' align='middle' allowScriptAccess='always' allowFullScreen='true' type='application/x-shockwave-flash' pluginspage='http://www.adobe.com/go/getflashplayer' ></embed>
</td>
</tr>
</table>
</div>
<script type="text/javascript">
function toggleMusicBox() {
if($.zb.get("musicbox") == "") {
$("div[name=music-box]").hide();
$.zb.set("musicbox",0);
}
else if($.zb.get("musicbox") == 0) {
$("div[name=music-box]").show();
$.zb.del("musicbox");
}
}
</script>


And then add this to Above the Board
Code:
 
<script type="text/javascript">$("#submenu").append("<a href='#' onmousedown='toggleMusicBox()'>Toggle Music Box</a>");</script>


I will admit in saying that I haven't tested it but I'm unable to so if there is an issue then please either post or PM me. Hope it helps :)
Edited by Ferby, Feb 16 2014, 05:05 PM.
Offline Profile Goto Top
 
Moonface
Member Avatar


Completed!

Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM.
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Closed Requests · Next Topic »
Locked Topic