Post Reply 
Drag-and-Drop Resizable Flash...
Dec. 02, 2008, 01:02 PM (This post was last modified: Dec. 02, 2008 01:45 PM by ProxRocks.)
Post: #51
RE: Drag-and-Drop Resizable Flash...
(Dec. 02, 2008 12:24 PM)z12 Wrote:  Can you post the filter your using?

here is what i'm currently running:
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: 96%;\n"
          "  height: 96%;\n"
          "  #margin: auto;\n"
          "  border: 4px double lightblue;\n"
          "  #background: lightblue;\n"
          "  #color: black;\n"
          "  padding: 2px;\n"
          "  position: relative;\n"
          "  }\n"
          "</style>\n"

Name = "Header Top Add: User JS Code - z12 Toggle Objects [add]"
Active = TRUE
URL = "$TYPE(htm)"
Limit = 16
Match = "(^(^<ProxHdrTop>))$STOP()"
Replace = "\t<script type="text/javascript" src="http://local.ptron/My_HTML/z12_HTML/z12.js">\r\n\t</script>\r\n"

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"

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=\1resizeMe\1 id=\1ResizeDiv\1>\0<\2/div><\2/textarea>"
          "<\2/span>"

no changes to genresize.js, z12.js attached...
the ResizeDiv width/height is, i'm hoping, only "temporary"...
so far, i really do like Graycode's method the best, as for resizing...
i just can't do without the toggle though, lol...


i've been "trying" some other methods, but the "base" of those attempts is an old LWC filter which i can't get to work anymore...

maybe it will give you some added ideas, or perhaps you can see why it isn't matching anymore...

Code:
Name = "Object/Embed Killer {LWC} [add]"
Active = TRUE
Bounds = "<object*</object>|<embed*>( </embed>|)"
Limit = 2700
Match = "[^>]++(codebase|type|classid)=*"
        "&(*<param (* name=$AV(movie|src|url)|"
        " value=$AVQ((")\0(((*\?)\1*)|\1)\2$TST(\0)))+{2}|"
        "*src=$AVQ((")\0(((*\?)\1)*|\1)\2$TST(\0)))"
        "&(*(<param name=$AV(flashvars) value|flashvars)="
        "$AV(\3)$SET(4=?)$SET(5=\4\3)|)"
Replace = "<a href=\0\2\5\0>[\1\4]</a>"

which "used to" work for me in this form:
Code:
Name = "Block & Fetch: Object/Embed Killer {LWC} (modified) [add]"
Active = TRUE
URL = "($TYPE(htm)|$TYPE(js)|$TYPE(vbs))"
Bounds = "<object*</object>|<embed*>( </embed>|)"
Limit = 2700
Match = "[^>]++(codebase|type|classid)=*"
        "&(*<param (* name=$AV(movie|src|url)|"
        " value=$AVQ((")\0(((*\?)\1*)|\1)\2$TST(\0)))+{2}|"
        "*src=$AVQ((")\0(((*\?)\1)*|\1)\2$TST(\0)))"
        "&(*(<param name=$AV(flashvars) value|flashvars)="
        "$AV(\3)$SET(4=?)$SET(5=\4\3)|)"
        "&*width=$AV(\6)*&*height=$AV(\7)*"
Replace = "<span class="ProxIframe ProxToggle" style="display:inline">"
          "<a class="ProxToggle&#x20;ProxTogO-A" href="javascript://""
          " onclick="prxO.oInt.inToggleA(this.parentNode);prxO.oInt.inToggleC(this.parentNode.nextSibling);""
          " target=_self>Fetch</a>"
          "<a class="ProxToggle&#x20;ProxTogO-A" href=\0\2\5\0 title="Entire&nbsp;Window" target="_top">Object/Embed</a>"
          "</span>"
          "<iframe class="ProxIframe" style="display:none;" width="\6" height="\7" src="about:blank" longdesc=\0\1\4\0></iframe>"


Attached File(s)
.zip  z12.zip (Size: 972 bytes / Downloads: 830)
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
Drag-and-Drop Resizable Flash... - ProxRocks - Nov. 27, 2008, 05:26 PM
RE: Drag-and-Drop Resizable Flash... - Oddysey - Nov. 27, 2008, 06:10 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Nov. 27, 2008, 07:57 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Nov. 27, 2008, 09:31 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Nov. 27, 2008, 11:42 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Nov. 28, 2008, 01:10 AM
RE: Drag-and-Drop Resizable Flash... - z12 - Nov. 28, 2008, 01:20 AM
RE: Drag-and-Drop Resizable Flash... - z12 - Nov. 28, 2008, 03:24 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Nov. 29, 2008, 05:49 AM
RE: Drag-and-Drop Resizable Flash... - z12 - Nov. 29, 2008, 01:23 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Nov. 29, 2008, 02:23 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Nov. 30, 2008, 12:29 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Nov. 30, 2008, 04:20 PM
RE: Drag-and-Drop Resizable Flash... - Oddysey - Nov. 30, 2008, 08:10 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Nov. 30, 2008, 10:25 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 02, 2008, 12:24 PM
RE: Drag-and-Drop Resizable Flash... - ProxRocks - Dec. 02, 2008 01:02 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 02, 2008, 09:23 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 03, 2008, 12:20 AM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 07, 2008, 03:32 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 09, 2008, 03:28 AM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 09, 2008, 05:00 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 10, 2008, 12:00 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 10, 2008, 01:48 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 10, 2008, 03:50 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 10, 2008, 06:06 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 11, 2008, 12:38 AM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 11, 2008, 01:28 AM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 11, 2008, 01:51 AM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 11, 2008, 07:20 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 16, 2008, 01:17 AM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 16, 2008, 12:21 PM
RE: Drag-and-Drop Resizable Flash... - 43unite - Dec. 16, 2008, 06:12 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 16, 2008, 10:15 PM
RE: Drag-and-Drop Resizable Flash... - bugger - Dec. 18, 2008, 05:24 AM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 20, 2008, 01:40 PM
RE: Drag-and-Drop Resizable Flash... - z12 - Dec. 21, 2008, 02:15 AM
RE: Drag-and-Drop Resizable Flash... - bugger - Dec. 21, 2008, 10:03 PM
RE: Drag-and-Drop Resizable Flash... - bugger - Jan. 14, 2009, 10:16 PM
RE: Drag-and-Drop Resizable Flash... - Mele20 - Jan. 15, 2009, 08:32 AM
RE: Drag-and-Drop Resizable Flash... - bugger - Oct. 28, 2009, 09:01 AM

Forum Jump: