No "clicked" button state?
In DreamWeaver CS5 I want to add menu buttons to my home page and am using the insert Images: Rollover Image function. Looks great for original and rollover states but there is no provision for "clicked" state. How may I make my button act in a clicked state? I have the graphics for all three states. Is there a better way to handle menus buttons?
Just to clarify, the link pseudo-classes are as follows:
a {} /**all links**/
a:link {} /**unvisited**/
a:visited {} /**visited**/
a:hover {} /**on mouseover**/
a:active {} /**onclick**/
a:focus {} /**on tabkey**/
Menu highlighting can be achieved with any anchor class name you desire -- "current" "foo" "whatever" But a:active has a particular purpose. This CSS Button Sprite Demo shows active & focus in action.
http://alt-web.com/DEMOS/CSS-Button-Sprite.shtml
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb
Similar Messages
-
Click button applescript statement bug in CS4?
I tried to GUI script the Photoshop CS4. Click button statement does not work for me on any of Photoshop CS4 dialogs.
Here is an example script:
tell application "Adobe Photoshop CS4"
activate
end tell
tell application "System Events"
tell process "Adobe Photoshop CS4"
click menu item "New..." of menu "File" of menu bar item "File" of menu bar 1
delay 1
click button "Cancel" of window "New"
end tell
end tell
The same script works perfectly in CS6, but not working in CS4. Is it a known issue?
Thank you.GeorgePowell,
> Yeh I have already done that. The whole button has the
instance
> name "button", have you downloaded the fla to see for
your self?
I downloaded your file and am able to reproduce the error
message you're
seeing. I'll have to dig into it more to determine what's
going on, but it
*might* be something related to the way CS4 handles "Export
in first frame"
in the component's properties dialog box.
Interestingly, I can save your file for CS3, open it in
Flash CS3, and
compile it just fine ... so it would appear that you might
indeed have
discovered a CS4-specific bug. I'll get in touch with someone
on the Adobe
Flash team today and share this file.
In the mean time, you can still experiment with the
principle of moving
from scene to scene -- as long as you don't use a component.
Instead, draw
a quick shape, convert it to a button symbol, and swap out
your component
button for the button symbol in both scenes. Make sure your
instance names
are in place, and it should work just fine for you (it does
for me with your
file).
David Stiller
Co-author, Foundation Flash CS4 for Designers
http://tinyurl.com/5j55cv
"Luck is the residue of good design." -
How do I use the button states in an action script?
In my Captivate 8 project I use smart shape as buttons. The buttons have different images presented dependent on the state of the button. I have also created a simple action script that shows what happens when the button is pressed. When the button has been pressed the normal state of the button appear. I, however, want the down state of the button to remain visible util the user presses another button. How do I accomplish this? Is there variables for the buttons different state or how can I create that?
BR,
MadeleineWhen you talk about 'actionscript' do you mean advanced or shared actions? You cannot write actionscript within Captivate, only Javascript. If you use advanced/shared actions they'll be converted on runtime to either Actionscript (for SWF output) or Javascript (for HTML5 output).
The states in shape buttons are the normal way buttons behave (not only in Flash). If you are indeed using shared/advanced actions, and you want the down state to remain until the next shape button is clicked, you'll have to go the way described by iFlashAppsToo. Create shapes that have the look of the down state, make them initially invisible and group all those shapes on one slide. Add two statements to the shared/advanced action (please do use shared actions, you'll save time):
Hide Group so that eventual down mimicked states on previously clicked buttons disappear
Show Im_Downx to show the down image for that button -
Radio button state on region load...
Is there a way to set the radio button state (click event) on a region load? The default value of 0 (read-only) works when clicked, but doesn't when the page initially loads, and it's like the button click event needs to take place at the region load time. The values are 1 and 0 set statically if that matters, and the hidden value does not get changed when the radio button with the value of 1 is selected.
The button makes the button visible when 'edit' is selected and the button disappears when 'read-only' is selected which is the expected behavior.
I do have a condition on the 'save' button for the value to not be zero which is based on the value from the radio button.
My gut says it'll be a region header attribute or Java Script sort of thing and I've not found anything so far, and I'm hoping there's an Apex guru out there that has a recommendation.
Thanks in advance!
MattI used some source I found on Denes' web site and added the call, but it didn't yield the result I was hoping for.
<script type="text/javascript" language="javascript">
$s('P8_RADIO_BUTTON','0');
function f_showhideButtonRadio(pThis, pValue)
{ var show_or_hide = html_RadioValue(pValue);
if (show_or_hide == 0)
{html_HideElement(pThis);}
else
{html_ShowElement(pThis);}
function f_showhideButtonSelect(pThis, pValue)
{ var show_or_hide = $x(pValue).value;
if (show_or_hide == 0)
{html_HideElement(pThis);}
else
{html_ShowElement(pThis);}
</script>
I'm quite new to the Java Script in Apex, so if I hosed this up, please let me know. Also, does that set the click event on or does that just set the value? The reason I ask is with a 0 or 1 it yielded the same result.
Thanks!
Matt -
How to easily add roller click buttons to my iweb page?
How easy is it to add roll over mouse click buttons to my website, using iWeb 09.
Many thanks.
GrahamiWeb only supports rollover text, not images.
To use images you have to create them first. One for the normal state and one for the hover or rollover state.
Then you must embed them in iWeb with the HTML Snippet.
Here's such a page :
http://www.wyodor.net/_Demo/duckmenu/HoverImages.html
Instead of two images it uses one that changes position when you hover the mouse over them :
!http://www.wyodor.net/Demo/duckmenu/duckassets/iWebHome.png!
Open the Activity window in Safari, Command-Opion-A, to see the other images. Option-double-click the image to save them.
Also save the webpage and study the code. -
Flash animation in button states
hello to gurus out there,
i am trying, several days now, to attach flash animated skins
to 3 of my buttons in a Flex application. Can somebody help me tell
this to Flex?
I've tried
<mx:Button id="deleteButton"
disabledSkin="@Embed(source='/resource/icons/delete_disabled.swf)"
overSkin="@Embed(source='/resource/icons/delete_over.swf')"
upSkin="@Embed(source='/resource/icons/delete_up.swf')"
downSkin="@Embed(source='/resource/icons/delete_down.swf')"
click="deleteClicked()"/>
..but with no good, i then get 200 errors in line 0 even
after i delete the code above
thanks is advance!thx Peter for your time helping me out (btw heres the
link
you sent me, very useful indeed) but it seems i can't still figure
out how to skin a Flex button component with animated skins i made
in Flash. So i''ll try explaining it better. Please bare with me.
In my Flex application i have 2 different kind of buttons.
One is static and that was pretty easy skinning it with the
.swf and .css examples i found.
Second one though, has a rotating animation on Over state
which changes the dimensions of the button.
In my flash file I made a movieClip (Mybutton) where i have
the four states of my button in 4 different movieclips along the
timeline. I labeled 4 frames according to the button state it
holds. i then used make Flex component command to export the swf to
Flex. And i actually see it in my custom components in Flex, but of
course i see it as a movieclip and not a button.
How do i tell Flex that this is a button and define its skin
states from the frame labels in flash?
I did try the @embed source skinning a Flex button with
separate swf but it's totally messed up with the animation the swf
holds. It completely distorts when i place mouse over it.
I don't know where I'm going wrong, can somebody help me
out?? -
How to add sound to a button state
I would like to add a simple 1-sec click sound to a button state when activated. Cannot find it in any manual nor here. Help?
http://www.editorsbin.com/apple/dvdsp/tutorials/audio_feedback/index.html
-
How would I create buttons states for MCs I am creating abstract MCs
I am creating a generic website that would have abstract MCs that would load jpg or TXT fields for the user interface to allow for fast updates to the site. The MCs that would make up the user interface would be empty and load things into it using XML or PHP later on. How would I create button states for the user interface MCs. I started creating a function for every MC button state but I thought there might be a more efficient way.
would creating a array help in this case?
and is using URLRequest the way to link to pages with in a movie well the flash movie that is the site it's self?
/*---------------------------- THE START OF MY ACTION SCRIPT ------------------------------*/
var waywardLogo_mc:MovieClip = new MovieClip;
var theCollection_mc:MovieClip = new MovieClip;
var newsPage_mc:MovieClip = new MovieClip;
var whatthe#$@!doyouwant!?_mc:MovieClip = new MovieClip;
/*---------------------------- onOver ------------------------------*/
waywardLogo_mc.addEventListener(MouseEvent.ROLL_OVER,onOver);
theCollection_mc.addEventListener(MouseEvent.ROLL_OVER,onOver);
newspage_mc.addEventListener(MouseEvent.ROLL_OVER,onOver);
whatthe#$@!doyouwant!?_mc.addEventListener(MouseEvent.ROLL_OVER,onOver);
/*---------------------------- onOut ------------------------------*/
waywardLogo_mc.addEventListener(MouseEvent.ROLL_OUT,onOut);
theCollection_mc.addEventListener(MouseEvent.ROLL_OUT,onOut);
newspage_mc.addEventListener(MouseEvent.ROLL_OUT,onOut);
whatthe#$@!doyouwant!?_mc.addEventListener(MouseEvent.ROLL_OUT,onOut);
/*---------------------------- onClick ------------------------------*/
waywardLogo_mc.addEventListener(MouseEvent.CLICK,onClick);
theCollection_mc.addEventListener(MouseEvent.CLICK,onClick);
newspage_mc.addEventListener(MouseEvent.CLICK,onClick);
whatthe#$@!doyouwant!?_mc.addEventListener(MouseEvent.CLICK,onClick);
function onOver(event:MouseEvent):void
event.target.alpha = .5;
function onOut(event:MouseEvent):void
event.target.alpha = 1;
function onClick(event:MouseEvent):void
event.target.URLRequest("");
/*---------------------------- onover, onOut, onClick buttonModes ------------------------------*/
waywardLogo_mc.buttonMode = true;
theCollection_mc.buttonMode = true;
newspage_mc.buttonMode = true;
whatthe#$@!doyouwant!?_mc.buttonMode = true;click insert/new symbol, tick movieclip, assign a name, tick export for actionscript and in the class textfield enter a name (say ButtonClass) and click ok.
attached to the first frame of your new movieclip, type stop() in the actions panel. put whatever graphic you want on-stage for your button's up stage. create another keyframe, label it "over" and put whatever graphic you want for button's over state on-stage.
in a layer above those graphics, you'll probably want to add a dynamic textfield so each of your buttons can have different text. assign the textfield and instance name (say tf) and extend its timeline to the last frame of your movieclip button.
then when you want to create a button, on your timeline you can use:
var b:ButtonClass=new ButtonClass(); // these two lines need to be entered for each button
buttonhandlerF(b,someX,someY);
//-------code between dotted lines only needs to be entered once no matter how many buttons you add --------------------
function buttonhandlerF(b:ButtonClass,x:Number,y:Number){
b.addEventListener(MouseEvent.MOUSE_OVER,overF);
b.addEventListener(MouseEVent.MOUSE_OUT,outF);
b.x=x
b.y=y
addChild(b);
function overF(e:MouseEvent){
e.currentTarget.gotoAndStop("over");
function outF(e:MouseEvent){
e.currentTarget.gotoAndStop(1);
//-------code between dotted lines only needs to be entered once --------------------
// you'll also want to create a click listener and listener function
the code between the dotted lines is amenable to being added to a ButtonClass.as class file if want to expand your capabilities. -
Preserving radio button state between frames
Is there a way in CS3 to preserve radio button state (selected or not) from frame to frame?
I have a multi-frame app where users select either yes or no (radio buttons) to an array of questions; as they complete these questions they click a forward button to move on to the next frame (set of questions). But I am wanting to add a back button that allows them to go back and change their answers...how I can preserve the state of radio buttons clicked on previous frames, so that when they go back to a previous frame (or frames) those radio buttons they selected are still selected?If the design is timeline based you will need to configure some form of memory (such as an array) to retain selection data so that when you enter a frame you use what is stored to set things up.
-
OBIEE report with Click button ( want to perform some actions)
Hi Experts,
My users want to make adhoc changes to an OBIEE report where I want to place a click button at the bottom of the report. Once the changes are done, They want to click the button so that the most current logical sql is captured and then it takes to another http url .
If any one have worked or has any ideas on this, Please share. Thanks in Advance.
SHi S,
Can you elaborate on what you mean by capturing the most current logical SQL?
What you are asking is only going to be as difficult as it is to perform the above action. The button and the navigate are simple.
John Minkjan shows you how to make a clear button here.
Basically you leverage the OBIEE class XUIPromptEntry minibuttonOn.
Here's the code (NOTE: You have to change the curly brackets to angular brackets):
{div class="XUIPromptEntry minibuttonOn"}{a href="#" onclick="return PersonalizationEditor.removeDefaultSelection(false)"}Clear{a}{div}
You can take this and modify it slightly to fit your purpose:
{div class="XUIPromptEntry minibuttonOn"}{a href="(URL to move to)" onclick="(javascript function that performs your task)"}Do Action Button{a}{div}
In the above, you will put the URL you want to navigate to in the (URL to move to) area. Then in the onclick function, you're going to want to write a javascript function that captures the latest logical SQL and have OBIEE call that function.
All that being said, this effort hinges on whether or not a javascript function can perform your task.
If you can elaborate on what you mean, I might be able to get you started on that function.
Good luck and if you found this post useful, please award points!
Best regards,
-Joe -
Interactive PDF: Rollover button state no longer working properly ???
Okay, what's going on with the Interactive PDFs lately?
Now all my rollover buttons no longer work properly. If I have a button that's simply a black arrow, and in the rollover state it's red.
No matter if I'm checking it out in the latest Acrobat Reader or Pro X, the rollover only works for a brief second..then reverts back to black - the original state.
This, combined with my latest problem with the show/hide button state, is really becoming a frustrating hassle:
http://forums.adobe.com/message/3933451#3933451
Any help would be appreciated.
I'm running 7.5.1.
Is this an Acrobat issue? The button function here seems to work in the InDesign preview mode.Hhmmm...I'm actually having this problem even with Adobe Acrobat 9 Professional. Does this make sense?
Again, I'm creating the document in InDesign CS5 and then building the PDF with Adobe Acrobat 9 Professional, and the rollover effects don't work in Adobe Acrobat 9, Adobe Reader 9, and Adobe Reader 10.
I'm a bit new to this process of software not providing its basic touted functionality. Is this the kind of thing where support for this functionality will vary from product to product? I had the same issue with PDF Portfolio -- where all its functioanlity was not supported in Adobe Reader X. If so, perhaps I should simply stick with the classic features of PDFs. Or can I trust, reliability, that going forward, this rollover effect will be supported in all Adobe Reader versions? This is quite an important issue for me as I provide all the documentation for my employer, including customer facing documentation -- and I simply don't know. Any recommendations? -
How can I go to other page when click button??
When I click button, the process of this button is be executed, then current page will go to other page.
1.I setup this button's Optional URL Redirect to other page, but process is not be executed.
2.I create a process and a branch(point: on-summit:after process...), not setup button's Optional URL. at this time, the process is be run, but not go to other page.
please help me if you know it! Thanks a lot!Do you need the process to do something or do you just want to forward to the next page. In this case you just need the branch. In the configuration you can choose the button that forwards to the next page.
Configuration in the branche:
Target type: Page in Application
Page: The Page you want to redirect to.
On clicked Button: The Button you created on the page which redirects to the next page
Hope i could help.
Philipp -
In the Firefox browser, when i click button in ADF page, then popup the OAF page in iframe tag,and then when i click the PPR bean in OAF page, then Firefox browser reload to ADF page. This is not the right response,browser should not reload the ADF page.It should stays in OAF page or goto another OAF page. and in other browser such ad IE,We get the right response.
hello, normally such issues are caused by a firewall/security software which doesn't recognize & therefore blocks new firefox versions. please remove all program rules for firefox from your firewall and let it detect the new version of the browser again.
[[Fix problems connecting to websites after updating Firefox]] -
Can't open an Executable From Click Button
Hi, Everyone!
I've broken a learning module into several small project
files to match the client's standards. I've set up click buttons
within each file to open each of the published movies for the
module. Everything works as expected.
Now I need to create a standalone course using the same
files. I've published each file as a Standalone executable. I've
modified the open action on the click buttons to "Open URL or File"
and selected the appropriate .exe file as the target. I've
republished the files with the new click action. When I open an
executable and click a button to open another executable, I get an
error message stating that the page cannot be displayed.
What am I doing wrong? Can anyone help?
Thanks,
Bob BrowneHi Bob
For starters, did you try simply exporting all related files
as .EXE files and test that way before making any changes? If so,
what were your results? I've seen before where once Captivate was
successfully linking to another movie, simply changing from .SWF to
.EXE format just worked.
Just a thought... Rick -
How to get the index of the clicked button on TOOLBARBUTTONCHOICE
Hello Experts,
I have used toolbarbuttonchoice and created the dropdown list of the buttons dynamically. now when any of the button is clicked i need to get the reference of the button to call appropriate code in the action, but i am unable to get the either the reference or index of the clicked button.
Please help.
Regards,
KinshukHi Sascha,
My code goes this way
data:
lr_btn_ch type ref to if_wd_view_element,
lr_toolbar_btn_choice type ref to cl_wd_toolbar_btn_choice,
lr_row_data type ref to cl_wd_row_data,
item type string,
action type string.
CALL METHOD view->get_element
EXPORTING
id = 'BTNCH' " button choice Element in layout
receiving
element = lr_btn_ch
lr_toolbar_btn_choice ?= lr_btn_ch.
DATA: lt_items type string_table,
lt_actions type string_table.
loop at lt_dyntab into ls_dyntab.
append ls_dyntab-name to lt_items.
append 'ONBTNCH' to lt_actions.
endloop.
i get the data in the table lt_dyntab from API not in context
loop at Lt_items into item.
read table Lt_actions index sy-tabix into action.
create_choice_item( i_toolbar_btn_choice = lr_toolbar_btn_choice i_item = item i_action = action i_view = VIEW ).
endloop.
create_choice_item creates the menu item for the button choice..
My question is where should i call the map_on_action method. and how do i retrieve the index or reference in ONBTNCH method.
please elaborate.
Regards,
Kinshuk
Maybe you are looking for
-
Linked .eps files cause error in InDesign CS5
I upgraded to CS5 about 2 weeks ago and all is well except: In 2 files so far, some (but not all) of the links to .eps files (within anchored image frames) show up as gray rectangles with crossed diagonal lines. In addition, I get the following error
-
Hello, I know I can query ALL_DB_LINKS to get a list of registered database links. What table or view can I query to know whether it's a shared database link? Thanks, Brad
-
HI CAN ANYBODY EXPLAIN ME IN DETAIL WHAT IS SAP QM MODULE?HOW SAP ABAPER HELPS SAP QM? SHAMIT
-
Enhancement/ BADI for Planned Order Routings CA01/ CA02
Hello Experts, The reqt. is An iDoc should get generated in SAP each time a Planned Order routing is: Created/ Updated/ Cancelled The iDoc generated should contain Planned Order attributes plus the routings. I am extending Idoc
-
Does cs4 have layer comps?
Does cs4 have layer comps? I don't see it in my Windows menu.