Post Reply 
Drag-and-Drop Resizable Flash...
Nov. 28, 2008, 02:24 AM
Post: #22
RE: Drag-and-Drop Resizable Flash...
here's an example...
grab sidki's 1/2/08 release (Kye-U's [unoff] updates not needed [they only deal with Google "themes"])...

Code:
[Patterns]
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"

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 = "Insert: USA Today & LATimes Sudoku [Key=^Ctrl-^Shift]"
Active = TRUE
URL = "(^$KEYCHK(^C))(^$KEYCHK(^S))(^$TST(uFile=search))(^$TST(uProt=https:))www.google.com"
Limit = 10
Match = "</html>"
Replace = "\r\n<script type="text/javascript">\r\n"
          "var prxdate = new Date()\r\n"
          "var prxyear = prxdate.getYear()\r\n"
          "prxyear-=2000\r\n"
          "if (prxyear < 10 )\r\n"
          "prxyear = "0" + prxyear\r\n"
          "var prxmonth = prxdate.getMonth() + 1\r\n"
          "if (prxmonth < 10 )\r\n"
          "prxmonth = "0" + prxmonth\r\n"
          "var prxday = prxdate.getDate()\r\n"
          "if (prxday < 10 )\r\n"
          "prxday = "0" + prxday\r\n"
          "</script>\r\n"
          "\r\n\r\n"
          "<center>"
          "<span class="FlashUSA" style="display:inline">"
          "<table cellpadding=0 cellspacing=0>"
          "<tr><td align=center>"
          "&nbsp;<a title="Show USA Today Sudoku" href="javascript:prxO.oInt.inToggleB('FlashUSA','cl','span')">Show USA Today Sudoku</a>&nbsp;"
          "</td></tr>"
          "</table>"
          "</span>"
          "<span class="FlashUSA" style="display:none">"
          "<script type="text/javascript">\r\n"
          "document.write ('"
      "<div class="resizeMe" id="ResizeDiv">"
          "<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000""
          " codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0""
          " WIDTH="100%" HEIGHT="100%" id="uc_sudoku" ALIGN="middle">"
          "    <PARAM NAME=movie VALUE="http://picayune.uclick.com/comics/ussud/uc_sudoku_usa.swf?"
          "dt=' + prxyear + prxmonth + prxday + '&xurl=http://picayune.uclick.com/comics/ussud/su_control.xml">"
          "    <PARAM NAME=quality VALUE=high>"
          "    <PARAM NAME=scale VALUE=exactfit>"
          "    <PARAM NAME=bgcolor VALUE=#FFFFFF>"
          "    <PARAM NAME="SeamlessTabbing" value="false">"
          "    <EMBED src="http://picayune.uclick.com/comics/ussud/uc_sudoku_usa.swf?"
          "dt=' + prxyear + prxmonth + prxday + '&xurl=http://picayune.uclick.com/comics/ussud/su_control.xml" "
          "SeamlessTabbing=false quality=high scale=exactfit bgcolor=#FFFFFF WIDTH="100%" HEIGHT="100%" ALIGN="middle" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">"
          "    </EMBED>"
          "</OBJECT>"
      "</div>"
          "');"
          "</script>\r\n"
          "<br>"
          "<a title="Hide USA Today Sudoku" href="javascript:prxO.oInt.inToggleB('FlashUSA','cl','span')">Hide USA Today Sudoku</a>"
          "</span>"
          "<br>"
          "<span class="FlashLAT" style="display:inline">"
          "<table cellpadding=0 cellspacing=0>"
          "<tr><td align=center>"
          "&nbsp;<a title="Show LATimes Sudoku" href="javascript:prxO.oInt.inToggleB('FlashLAT','cl','span')">Show LATimes Sudoku</a>&nbsp;"
          "</td></tr>"
          "</table>"
          "</span>"
          "<span class="FlashLAT" style="display:none">"
          "<script type="text/javascript">\r\n"
          "document.write ('"
      "<div class="resizeMe" id="ResizeDiv">"
          "<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000""
          " codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0""
          " WIDTH="100%" HEIGHT="100%" id="uc_sudoku" ALIGN="middle">"
          "    <PARAM NAME=movie VALUE="http://picayune.uclick.com/comics/lasud/uc_sudoku_lat.swf?"
          "dt=' + prxyear + prxmonth + prxday + '&xurl=http://picayune.uclick.com/comics/lasud/su_control.xml">"
          "    <PARAM NAME=quality VALUE=high>"
          "    <PARAM NAME=bgcolor VALUE=#FFFFFF>"
          "    <PARAM NAME="SeamlessTabbing" value="false">"
          "    <EMBED src="http://picayune.uclick.com/comics/lasud/uc_sudoku_lat.swf?"
          "dt=' + prxyear + prxmonth + prxday + '&xurl=http://picayune.uclick.com/comics/lasud/su_control.xml" "
          "SeamlessTabbing=false quality=high bgcolor=#FFFFFF  WIDTH="100%" HEIGHT="100%" ALIGN="middle" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">"
          "    </EMBED>"
          "</OBJECT>"
      "</div>"
          "');"
          "</script>\r\n"
          "<br>"
          "<a title="Hide LATimes Sudoku" href="javascript:prxO.oInt.inToggleB('FlashLAT','cl','span')">Hide LATimes Sudoku</a>"
          "</span>"
          "<br>"
          "</html>"

don't forget the "My_HTML/ErikArvidsson_HTML/genresize.js" attached in a higher-up post...

the first goes right below "Header Top Inject: User CSS on sel. Sites"...
the second goes right below "Header Top Add: Initial JS Code"...
the third goes AFTER all of sidki's filters, all the way to the very bottom...

now go to http://www.google.com ...
whoala! you have "toggled" flash-embeds...
and eureka! grab the "edge" of that flash-embed and you can RESIZE it!... (the LATimes one works a little better, test with that one...)


this is what i'm wanting to do with ALL .swf's, not just the one's i "document.write" in...


(oh, now i got you all hooked on Sudoku, lol... the ctrl/shift tests are because i also doc.write PCman Simon, uclick Kakuro, Snake Classic, and a paper-throwing game into a waste basket with a circular fan blowing a breeze across my throwing path)... good golly, i love Proxo!


so long as the object/embed tags width/height parameters are set to 100%, flash files are RESIZABLE, dimensionally-speaking (with the help of genresize.js)...


edit: added [Patterns]...
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... - ProxRocks - Nov. 28, 2008 02:24 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... - 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: