If you have control over the page that loads into that frame, then you can do this. But if it’s not your page, you can’t. Let me know if you want the JavaScript to do this.
You will probably sigh in despair, but I have no idea how to set a class-based style. The word ‘class’ doesn’t even appear anywhere in FW documentation.
Close. That will give you a class-based style all right, but it won’t publish it unless you apply it to something. I would recommend that you put the style name in the Tag field, preceded by a dot. That will be a “tag-only” style, which gets published whether you apply it to something or not. So the long directions are as follows:
In the New Style dialog from the Styles palette, enter .notice in the Tag field.
Tab into the Name field, delete whatever is there, and press tab again.
In the Extended interface, press New.
In the Name field, enter margin-top
In the Value field, enter -20px
Okay out of the stack of dialogs.
You now have a class-based style named notice, this style does not need to be applied to anything manually, and it can be relied on to “shake” the page inside the iframe when it is rapidly applied and removed by the script.
Walter
On Aug 8, 2014, at 5:58 AM, DeltaDave wrote:
Look at the style inspector
Click the cog at the top and choose new style
Put ‘notice’ (no quotes) in the name field and set your other parameters
All of this code (style and JavaScript) must go in the page that loads into the iframe, not the outer page that contains the iframe. An iframe, like any other frame, is its own sandbox, and you cannot influence the behavior or style of its content page from outside of the content page. I’ll post an example that shows this working when I get a chance.
Okay Walter, feeling like a bigger twit now. The page is an old one that I made in iWeb and just update occasionally, so I’ll see about adding html in there. Apologies for being dumb about it.
Okay Walter, feeling like a bigger twit now. The page is an old one that I made in iWeb and just update occasionally, so I’ll see about adding html in there. Apologies for being dumb about it.
Adding to iWeb is something of a bodge, however, whilst thinking about this, I’m leaning towards re-creating my site in FW7 as a responsive site. The ‘why’ for my current design was precisely to cater to different browser/screen sizes with a single site. A sort of early responsive. The point being, that by placing all of the buttons/links at the top-left corner, where they remain fixed and having the content in a re-sizable iFrame … any size of browser window works.
With responsive, it seems to me that this ‘top-left’ solution is no longer necessary and I can rethink using a more conventional site where it’s no longer necessary to keep everything in an iFrame.