|
Post by Wormopolis on Sept 10, 2009 2:49:43 GMT -8
Browser Tested: IE and FF placement: global footer creates a new UBBC called [newmove] that will grant you a little more control over a marquee inside a post. [norunubbc] use: [newmove:flags]content[/newmove] current flags: p = pause on mouseover s(n) = speed control, n is delay in milliseconds h(n) = height of marquee, n in pixels w(n) = width of marquee, n in pixels d(x) = direction, x can be up, down or right (default left) L = Slide (moves from one end to the other and stays) B = Bounce (bounces between ends) [newmove:pd(right)]This would create a marquee moving to the right that paused[/newmove] [newmove:ps(200)]This would create a marquee with a slight delay in movement that paused on mouseover[/newmove] flags do not have to be in any particular order. <script type="text/javascript"> <!-- // New move UBBC v1.61 // By Wormopolis - [url]www.wormocodes.com[/url] // Do not repost - keep header intact
// use [newmove:flags] [/newmove] in post to show // current flags: // p = pause on mouseover // s(n) = speed, n = number of milliseconds // // ---- behavior: cannot have both L and B // L = slide // B = bounce // // ---- direction: // d(up) = up // d(down) = down // d(right) = right // // ---- height/width: // h(n) = height of marquee, n=pixels // w(n) = height of marquee, n=pixels. defaults to 100% wide
var btnImg="http://i197.photobucket.com/albums/aa250/WORMOPOLIS/newmove.png";
if (document.postForm) { var btnTray=document.postForm.color.parentNode; var nwbtn=document.createElement('a'); nwbtn.href="javascript: NM_showcontrolbox();"; nwbtnimg=document.createElement('img'); nwbtnimg.src=btnImg; nwbtnimg.border=0; nwbtn.appendChild(nwbtnimg); btnTray.appendChild(document.createElement('br')) btnTray.appendChild(nwbtn); }
function insertNM() { var NMswitches=''; if (document.getElementById('NMpause').checked) NMswitches+='p'; if (document.getElementById('NMspeed').value) NMswitches+='s('+document.getElementById('NMspeed').value+')'; if (document.getElementById('NMheight').value) NMswitches+='h('+document.getElementById('NMheight').value+')'; if (document.getElementById('NMwidth').value) NMswitches+='w('+document.getElementById('NMwidth').value+')'; if (document.getElementById('NMbhve_alt').checked) NMswitches+='B'; if (document.getElementById('NMbhve_slide').checked) NMswitches+='L'; if (document.getElementById('NMDir_right').checked) NMswitches+='d(right)'; if (document.getElementById('NMDir_up').checked) NMswitches+='d(up)'; if (document.getElementById('NMDir_down').checked) NMswitches+='d(down)'; add('[newmove:'+NMswitches+']','[/newmove]'); document.getElementById('NMdiv').style.display='none'; }
function NM_showcontrolbox() { var NMnwdv=(document.getElementById('NMdiv') ? document.getElementById('NMdiv') : document.createElement('div')); document.body.appendChild(NMnwdv); with (NMnwdv) { id="NMdiv"; style.width='300px'; innerHTML='<table class="bordercolor" width="100%"><tr><td class="windowbg"><input id="NMpause" type="checkbox"> Pause on mouseover<br><input id="NMspeed" style="width:40px"> Speed in ms<br><br>Behavior<br><input id="NMbhve_norm" type="radio" name="NMBehave" checked="true"> Normal<br><input id="NMbhve_alt" type="radio" name="NMBehave"> Alternate<br><input id="NMbhve_slide" type="radio" name="NMBehave"> Slide<br><br>Direction<br><input id="NMDir_left" type="radio" name="NMDir" checked="true"> Left<br><input id="NMDir_right" type="radio" name="NMDir"> Right<br><input id="NMDir_up" type="radio" name="NMDir"> Up<br><input id="NMDir_down" type="radio" name="NMDir"> Down<br><br><input id="NMheight" style="width:40px"> Height in px<br><input id="NMwidth" style="width:40px"> Width in px (defaults to 100%)<br></td></tr><tr><td class="windowbg2"><center><input type="button" value="OK" onclick="insertNM();"><input type="button" value="Cancel" onclick="document.getElementById(\'NMdiv\').style.display=\'none\';"></table>'; style.position='absolute'; style.zIndex='50'; style.top=(document.body.scrollTop+screen.availHeight/3)+'px'; style.left=(screen.availWidth/2- 150)+'px'; } document.getElementById('NMdiv').style.display=''; }
if (pb_action.match(/(display|boardindex|search2|home|previewpost)/)) {
for (tds=document.getElementsByTagName('td'), i=0; i<tds.length; i++) { if (tds[i].width.match(/(16|24)%/) && tds[i].className.match(/(windowbg|hookwormcells)/) && tds[i].innerHTML.match(/\[newmove(:?)(.*?)\](.*?)/i)) { tds[i].innerHTML=tds[i].innerHTML.replace(/\[(\/?)newmove(:?)(.*?)\]/gi,''); } if ((tds[i].width=="80%" && tds[i].className.match(/windowbg/) && tds[i].vAlign=="top" || tds[i].width=="80%" && tds[i].className.match(/catbg/) && tds[i].vAlign=="middle" || tds[i].width.match(/43%/) && tds[i].className.match(/windowbg/)) && tds[i].innerHTML.match(/\[newmove(:?)(.*?)\](.*?)\[\/newmove\]/i) && !tds[i].innerHTML.match(/\[norunubbc\]/i)) {
victCell=tds[i];
while (victCell.innerHTML.match(/\[newmove(:?)(.*?)\](.*?)\[\/newmove\]/i) ) { flags=RegExp.$2; content=RegExp.$3; paus= (flags.match(/([^u]|^)p/i))?" onmouseover='this.stop()' onmouseout='this.start()' ":""; sped= (flags.match(/s\((\d+)\)/i))?" scrolldelay='"+RegExp.$1+"' ":""; hite= (flags.match(/h\((\d+)\)/i))?" height='"+RegExp.$1+"' ":""; wit= (flags.match(/w\((\d+)\)/i))?" width='"+RegExp.$1+"' ":" width='100%'"; dir= (flags.match(/d\((.*?)\)/i))? " direction="+RegExp.$1:""; behave= (flags.match(/L/)&&!flags.match(/B/))?" behavior=slide": (!flags.match(/L/)&& flags.match(/B/))?" behavior=alternate ":""; yougotit="<marquee "+dir+sped+paus+behave+hite+wit+">"+content+"</marquee>"; victCell.innerHTML=victCell.innerHTML.replace(/\[newmove(:?)(.*?)\](.*?)\[\/newmove\]/i,yougotit); } } } } //--> </script>
Preview Thread: wormocodes.proboards.com/index.cgi?board=graphreqaswell&action=display&thread=258
|
|
|
Post by DangerKart on Sept 10, 2009 16:38:00 GMT -8
I hope those possible upgrades become upgrades, they sound cool
|
|
|
Post by Wormopolis on Sept 10, 2009 17:30:48 GMT -8
I might be requesting another UBBC icon for it as well soon...
|
|
|
Post by Wormopolis on Sept 16, 2009 12:39:22 GMT -8
There is a request on support to have it affect thread titles now too...
|
|
|
Post by Wormopolis on Sept 24, 2009 23:08:55 GMT -8
version 1.4 posted. If you have ideas for a button, Im all ears.
|
|
|
Post by eveready on Feb 16, 2010 11:30:48 GMT -8
If you're still looking for a button.....
|
|
|
Post by Wormopolis on Feb 16, 2010 15:41:28 GMT -8
sweet. and I just realized when I moved that thread here I canceled out the thing that was keeping it from making the instructions move. LOL! I will go fix that right now...
THEN I will work on adding your button in.
|
|
|
Post by Wormopolis on May 27, 2010 16:51:03 GMT -8
version update
|
|
|
Post by Wormopolis on May 27, 2010 16:52:46 GMT -8
and at some point I will incorporate eveready's button idea...
|
|
|
Post by rhondairv on May 27, 2010 17:28:19 GMT -8
Yeah, i am waiting on that. I need the button because i just can't get it right most of the time. With more practice i could , but i need all the help i can get lol
GREAT button everready!
|
|
hobo
Not New Member
Posts: 38
hobo said 0 great things
|
Post by hobo on Apr 10, 2011 23:36:06 GMT -8
um, so waht happened to this button? is it forgotten
|
|
|
Post by Wormopolis on Apr 11, 2011 12:06:53 GMT -8
pretty much it was forgotten. I get a lot of requests.. stuff is bound to be forgotten about.
you can bump this every so often if you really want it
|
|
hobo
Not New Member
Posts: 38
hobo said 0 great things
|
Post by hobo on Apr 11, 2011 14:47:05 GMT -8
cant u quickly add the img? i want it on my site
|
|
|
Post by Wormopolis on Apr 12, 2011 14:43:28 GMT -8
well I can throw a button that will just insert the ubbc for new move into the post.. but making something that shows a user what all switches are available isnt "really quick". that was the main reason I never had one in the first place.. I couldnt decide on how I was going to make some sort of UI for it.
|
|
hobo
Not New Member
Posts: 38
hobo said 0 great things
|
Post by hobo on Apr 13, 2011 16:17:34 GMT -8
well when you DO add the img, if you can can you help me put it into my quick reply thing?
|
|