On Oct 11, 2011, at 12:41 AM, JDW wrote:
Walter, you suggested the following HTML markup code to change the color to white and to remove the borders:
<style type="text/css">
> .overlay {
> background-color: #fff !important;
> -moz-border-radius: 0px !important;
> -webkit-border-radius: 0px !important;
> border-radius: 0px !important;
> padding: 0px !important;
> }
> </style>
Here are my questions:
- How do I eliminate the background color altogether and make it transparent instead?
You can use the keyword ‘transparent’ instead of a color number or name. So background-color: transparent !important;
should do the trick.
- How can I make it so that I can click anywhere inside my graphic to make it vanish, rather than be forced to click the X in the upper left?
The reason why the Action works this way is because one of its big use-cases was QuickTime movies. Those you have to click on in order to control (start/stop/seek) so I needed a discrete close control.
If you want to force the other behavior, add the following rule to your style block:
#_closer { display:none !important; }
That gets rid of the close box.
Then add this through Protaculous (choose prototype-packed from the Library picker):
document.observe('click',function(evt){
var elm;
if(elm = evt.findElement('#_player'))
elm.remove();
});
document.observe('touchstart',function(evt){
var elm;
if(elm = evt.findElement('#_player'))
elm.remove();
});
I haven’t tested this, but it ought to work. All it’s doing is setting a handler to close the popup whenever it is clicked.
- How can I prevent JPEG and GIF graphics from being scaled down when the browser window is too small? (I want my graphic to open up and be a fixed size, regardless of how small the browser window may be.)
If you remove this feature, there won’t be much of anything left to the Action. You could very easily use Spawn New Window or even target =“_blank” at this rate! I don’t see a way to remove this without fundamentally rewriting the Action. Plus, it would be a usability nightmare on the iPad.
Walter
With regard to my first two questions, here is an example web page (using a different script) that offers transparent backgrounds and click-to-close anywhere inside the object (click the block of icons that are below the big “735HB”):
SCIBORG® 735HB: CAN-BUS専用ハイブリッド・セキュリティ
Thank you,
James Wages
actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options