Nov. 27, 2008, 05:26 PM
in ref. to the filter posted here - http://prxbx.com/forums/showthread.php?t...85#pid9885
i'm in-process of updating and adding a resizability function...
the .swf is contained within a DIV tag, the DIV tag is resizable by hovering on its borders and dragging-and-dropping to the size you want...
everything works perfectly - until i try to incorporate into the toggle objects filter, which is my desired end-in-mind... toggle first, resize only after toggle...
the problem is that i need the width and height settings of the flash/object to NOT be "fixed", i want the flash/object to 'resize' when the border outline is dragged-and-dropped... and no matter what i do, when i try to rewrite z12's toggle filter to capture the width and height, it "breaks"...
i can get everything to work, even resize the flash/object with the drag-and-drop resizing of the DIV container (if that's the right terminology), but not WITH the toggle filter...
here's where i'm at so far:
.js file is attached (observe directory structure above)...
here's an example where you can drag-and-drop the borders - http://www.flashcomguru.com/apps/fullscr...creen.html
any assistance would be GREATLY appreciated, i've been "wanting" to DYNAMICALLY RESIZE .swf's for YEARS (primarily during MLB season, lol)... and now i found a way, just can't get my fingers around why capturing the width/height in the toggle filter "breaks" that filter...
i'm in-process of updating and adding a resizability function...
the .swf is contained within a DIV tag, the DIV tag is resizable by hovering on its borders and dragging-and-dropping to the size you want...
everything works perfectly - until i try to incorporate into the toggle objects filter, which is my desired end-in-mind... toggle first, resize only after toggle...
the problem is that i need the width and height settings of the flash/object to NOT be "fixed", i want the flash/object to 'resize' when the border outline is dragged-and-dropped... and no matter what i do, when i try to rewrite z12's toggle filter to capture the width and height, it "breaks"...
i can get everything to work, even resize the flash/object with the drag-and-drop resizing of the DIV container (if that's the right terminology), but not WITH the toggle filter...
here's where i'm at so far:
Code:
Name = "Toggle: Object {4.d.3.2} 20081118 {z12} [add] [test]"
Active = TRUE
URL = "($TYPE(htm)|$TYPE(js)|$TYPE(vbs))(^$TST(keyword=*.flash.*))"
Limit = 5120
Match = "("
"("
"$NEST(<object(\s|"),"+</object >)|"
"<object(^[a-z])(*/ object >&&(^*<object)*)|"
"<embed(^[a-z])*>(^ [=a-z0-9])( </embed >)+"
")\0(^ </object >)(^ </textarea>)"
"&&"
"(^*(type=$AV(image/*)))"
"*)"
"$SET(flash=$GET(flash)$DTM(t))"
"(($TST(script=*))$SET(1=\\")$SET(2=\\)|$SET(1=")$SET(2=))"
Replace = "<span class=\1flash$GET(flash)\1 style=\1display:inline\1>"
"<a title=\1Play Media\1 onclick=\1PrxObjToggle(this)\2;return false\2;\1 onmouseover=\1PrxTitleObj(this)\1>"
"<img alt=\1Toggle Media\1 src=\1http://local.ptron/My_HTML/43unite_HTML/player_play.png\1 style=\1border-style:none\1 /><\2/a>"
"<br />"
"<\2/span>"
"<span class=\1flash$GET(flash)\1 style=\1display:none\1>"
"<textarea style=\1display:none\1><div class="resizeMe" id="ResizeDiv">\0</div><\2/textarea>"
"<\2/span>"
Code:
Name = "Header Top Inject: User CSS - Resizable Div [add]"
Active = TRUE
URL = "$TYPE(htm)"
Limit = 16
Match = "(^(^<ProxHdrTop>))$STOP()"
Replace = "<style type="text/css">\n"
"#ResizeDiv {\n"
" overflow: auto;\n"
" width: auto;\n"
" height: auto;\n"
" border: 2px inset lightblue;\n"
" background: lightblue;\n"
" color: black;\n"
" padding: 1px;\n"
" }\n"
"</style>\n"
Code:
Name = "Header Top Add: User JS Code - Resizable Div [add]"
Active = TRUE
URL = "$TYPE(htm)"
Limit = 16
Match = "(^(^<ProxHdrTop>))$STOP()"
Replace = "\t<script type="text/javascript" src="http://local.ptron/My_HTML/ErikArvidsson_HTML/genresize.js">\r\n\t</script>\r\n"
.js file is attached (observe directory structure above)...
here's an example where you can drag-and-drop the borders - http://www.flashcomguru.com/apps/fullscr...creen.html
any assistance would be GREATLY appreciated, i've been "wanting" to DYNAMICALLY RESIZE .swf's for YEARS (primarily during MLB season, lol)... and now i found a way, just can't get my fingers around why capturing the width/height in the toggle filter "breaks" that filter...