Behaviors on a simple a link?

I am using DW CS3 on a mac, I have a a table which is a library item it has 9 cells with text in each, each text is an <a> link to a page.  I am looking through the books I have, they describe how to set behaviors to do a lot of things, but what I want is to change the font weight and size on mouse over
and the font size and color on selection, is this possible without an image swap?
Thanks
Chris

Use CSS. You can insert it into the head of your document, but it would be better to put it in an external file.
The external file method works like this.
---- html document -----
<head>
<script type="text/css" rel="stylesheet" src="style.css" />
--- style.css -----
a:hover {
     font-weight: bold; // this can have other values also, just ask if you don't want bold
     font-size: 1.1em; // this is a flexible unit type based on the value already set
     color: red; // you can also use many other names or values. I prefer using hex values, #f00 is the same as red
But, a good place to learn about this is at w3schools.com. Go through the html, xhtml, css. then once you have a good feel for that you could look into javascript to make things even more enhanced.

Similar Messages

  • Simple button link

    I'm trying not to cry. I feel like I've been totally
    blindsided by ActionScript 3.0. All I want to do is add a freakin
    link to a website on a button.
    I can't find any simple tutorials. Please will someone help
    me? Either with a sample code snippit or a resource?
    Here is what I HAVE found, but it does not work:
    btn.addEventListener(MouseEvent.CLICK, clickHandler);
    function clickHandler(event:MouseEvent): void{
    navigateToURL(new URLRequest(
    http://www.adobe.com/));
    I have named the mc on my stage "btn". I get the following
    two errors:
    '{' expected
    and
    Unexpected '}' encountered
    I'll send happy thoughts your way for any help....
    btw, I removed the quotes around the URL because it was
    displaying badly in this message.

    Okay. As for the book, I bought the O'Reilly AS 3.0 Cookbook
    which is pretty good. There is a new O'Reilly book by Colin Moock
    coming out June 15th by O'Reilly: Essential AS 3.0. I have ordered
    the latter. I'd recommend them both if you can handle books that
    aren't dumbed down too much....
    Yes, try was supposed to be there :)
    Two questions:
    1. Did you choose AS 3.0 document for this document when you
    made it?
    2. Your publish settings (in Flash tab) set to AS 3.0?
    I believe it is compiling it as AS 2.0 or something rather
    than 3.0, maybe? Because that code I gave you works just fine for
    me....

  • How to get the text of an onclick/'open browser window' behavior to look like a link

    If I set this behavior to a specific word (on an <a> tag without the 'href') the link is not underlined and the mouse does not turn into a pointer. If I set this behavior to a full <a> tag with the 'href="..."' then the browser opens a new window (as per the behavior) and a new page on the original window (as per the href="..."). How do I get the link to appear as a link (underlined and mouse changing into pointer) without having to assign a href="..." to the <a> tag?

    Gary,
    I appreciate the time you are giving me to address my question. However, even though I would like to have this link stand out to the viewer, I do not want it to stand out from all the other links that surround it. Also, I have tried the solution you have given me, yet it to also causes the browser to load the new window and the original page. There is no difference whether the behavior is linked to <a href> or some other tag as long as there still is an <a href> the original browser will load the new page as well.

  • How does one get a simple URL link onto the Designer Form?

    Greetings:
    Thank heavens for small favors, kudos to Adobe for Designer and its basic email functionality.
    One annoying thing, I am finding it impossible to put a simple link on the Designer Form. Likewise, if I open the form in Acrobat, the link icon on the toolbar is greyed and unavailable, so I cannot select text and turn it into a link.
    I have found that I can make a bookmark with the form open in Acrobat and make that a link to a URL, but I cannot specify the initial view to show the bookmarks open, so there is a very good chance this bookmark/link will never be seen.
    The HTTP button help states:
    "The HTTP submit button operates like a standard button object with these settings:
    Control Type set to Submit
    Submit Format set to URL-Encoded Data
    Submit To URL set to use the http: protocol."
    which doesn't sound like it's meant to function like a simple link, and trying it anyway I get an error message that the url is incorrect.
    Any ideas on this?
    regards,
    stevenjs
    "I am but an egg."
    --Stranger in a Strange Land

    I guess one can't paste html in these posts, here's the code, minus all the html tags, and the brackets for the meta tag, title tag and body tag.
    Opening URL in new window from Acrobat.
    The Code for the first HTML page.
    meta http-equiv="refresh" content="2; URL=Original.pdf"
    title New Page 1 title
    BODY onload="window.open('startNewPDF.htm', 'newWindow')"
    Code for the second HTML page which forces the new document to stay on top.
    meta http-equiv="refresh" content="3; URL=New.pdf"
    title New Page 1 title
    body onBlur="setTimeout('self.focus()',2500)"
    By the way, I figured out where to apply javascript to a button. Being new to Designer, I did not see that slender script interface at the top.
    James' xfa.host.gotoURL("http://www.yoursite.com",0); does indeed work like a charm. I just selected the button, selected Javascript instead of FormCalc, Selected "click" from the event dropdown, and pasted in xfa.host.gotoURL("http://www.yoursite.com",0); (changing the URL of course).
    regards,
    stevenjs
    "I am but an egg."
    --Stranger in a Strange Land

  • Creating a simple url link in WebDynpro

    Hello,
    I would like to create a simple link in web dynpro.
    meaning that a text i will have will be linked to an address in my computer, for example:
    "My Documents" will link to c:\douments and settings\my documents\
    I tried to use LinkToUrl but it seems that it only supports navigation within the portal PCD which is not suitable for me.
    Is this possible? thanks.
    Eli.

    Hi Eli
    >"My Documents" will link to c:\douments and settings\my documents\
    This is not possible because there is no an access by HTTP from the WebDynpro server to the local folder (or any other folder) by technical and security reasons.
    >I tried to use LinkToUrl but it seems that it only supports navigation within the portal PCD which is not suitable for me.
    This is not true. With LinkToUrl you use any URLs not even related to Portal.
    BR, Siarhei

  • How to USE SE41 to create help menu to go to simple intranet link

    Hello All,
    We are redesigning our SAP help system to go away from context sensative help to a Sharepoint based help site. Not as slick but cheaper. To that end I've been researching SE41 and how to turn off existing help menu choices. That will be pretty easy. I'd also like an option to use a menu to launch a simple link to our master help site on our intranet. Has anyone done anything like this?
    Thanks,
    Doug

    Update: There seems tio be a function code used in the help menu to launch the SAP Service Marketplace link. IT uses function code HNET. I'm new to this. Is this something I can just create a z copy of and modify. Not even sure how to work with it. Looks in SE80 and couldn't find. Help!!!
    Thanks,
    Dougy

  • Server Behavior  (Building a simple recordset)

    Hi DW friends, I'm working on the
    Building your first dynamic website – Part 2: Developing the back end  by David Powers
    and up to the part "Building a simple recordset". My problem is from inside the server behavior panel when I cliick the plus button at the top left of the Server Behaviors panel, the drop-down menu appears but there is no option of "Recordset"
    Anyone have a suggestion how I can get the Recordset option to appear so I can setup my Recordset????
    Details:
    Windows Vista
    CS5
    thanks in advance for help and consideration.
    marc

    If the servers are running and the connection is OK, I don't see any reason why you can't see Recordset listed. It should be at the top of the menu when you click the plus button in the Server Behaviors panel. It should also be listed in the Bindings panel.
    If it's not there in either panel, try shutting down Dreamweaver and restarting. If that still doesn't work, you might need to dump your personal configuration folder (see http://forums.adobe.com/thread/494812).
    After that, I'm out of ideas.

  • Confused by the behavior on importing simple tagged text

    I have a tagged text file with the following content beween the dashed lines. (the lines are not part of the file). Both IText and BText are predefined paragraph sytles.
    <ASCII-WIN>
    Price <ParaStyle:IText>AA<cPosition:Superscript>aa<cPosition:> - <ParaStyle:BText>BB<cPosition:Superscript>bb<cPosition:>
    Once imported,  the result is not what I expected. Specifically,
    1. All text are imported with the BText paragraph style.
    2. It shows the "bb" as superscripted, but not the "aa".
    Why is that? And how can I have different styles for the AAaa part versus the BBbb part?
    This can be reproduced on CS5 and CS5.5. Didn't try any older versions.
    Thanks.

    When I think of it, the first behavior makes sense, because the text were specified as a continuous line without line break, they are treated as a single paragraph. And for a paragraph, only one paragraph can be used, and the one that is specified later, BText in this example, wiins.
    But still, why does the import routine ignores the superscript character style on "aa"  before the second  paragraph style tag?

  • I can't add simple HTML link to HTMLDocument in jEditorPane

    h5. How to construct a link to make it work?
    HTMLDocument doc = (HTMLDocument) jEditorPane.getDocument();
    String link = dialogSlownikEkranow.getLink();
    SimpleAttributeSet tag = new SimpleAttributeSet();
    SimpleAttributeSet attrs = new SimpleAttributeSet();
    tag.addAttribute(HTML.Tag.A, attrs);
    attrs.addAttribute(HTML.Attribute.HREF, link);
    +try {+
    + doc.insertString(jEditorPane.getCaretPosition(), "some link", tag);+
    +} catch (BadLocationException e1) {+
    + e1.printStackTrace();+
    +}+
    h5. As a result I get
    <+a href="\mw\client\cd\plytacd.html"><p></a>+
    h5. but I require something like
    <+a href="\mw\client\cd\plytacd.html">some link</a>+

    Hi,
    nirgal wrote:
    h5. How to construct a link to make it work?
    HTMLDocument doc = (HTMLDocument) jEditorPane.getDocument();
    SimpleAttributeSet tag = new SimpleAttributeSet();
    SimpleAttributeSet attrs = new SimpleAttributeSet();
    tag.addAttribute(HTML.Tag.A, attrs);
    attrs.addAttribute(HTML.Attribute.HREF, link);
    I don't believe that SimpleAttributeSet is right for HTMLDocument. In your code, you regard a HTML.Tag as a AttributeSet. Apparently this is not the absolute truth. May be I'm wrong, then one may correct me.
    My suggest�on is to use string concatenation to make the HTML for the link and then use HTMLEditorKit.read to put this HTML into the HTMLDocument on caret position.
    import java.awt.*;
    import javax.swing.*;
    import java.io.*;
    import javax.swing.text.*;
    public class JEditorPaneSample {
      private static void createAndShowGUI() {
        JFrame frame = new JFrame("FrameDemo");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        JEditorPane jeditorpane = new JEditorPane();
        jeditorpane.setContentType("text/html");
        jeditorpane.setText("<p>Hello World</p>");
    //insert a link on caret position
    String link = "mw/client/cd/plytacd.html";
    String htmlstring = "<a href=\"";
    htmlstring += link + "\">";
    htmlstring += "some link" + "</a>";
    try {
      jeditorpane.getEditorKit().read(new StringReader(htmlstring), jeditorpane.getDocument(), jeditorpane.getCaretPosition());
    } catch (BadLocationException e) {
      e.printStackTrace();
    } catch (IOException e) {
      e.printStackTrace();
        System.out.println(jeditorpane.getText());
        frame.getContentPane().add(jeditorpane, BorderLayout.CENTER);
        frame.pack();
        frame.setVisible(true);
      public static void main(String[] args) {
        javax.swing.SwingUtilities.invokeLater(new Runnable() {
          public void run() {
            createAndShowGUI();
    }greetings
    Axel

  • Can you link text to an "Open in New Browser Window" behavior?

    Newbie here... the title asks the question. I know you can link an image in this way, but can you do it with text?

    Yeah.  The manner in which PDF files are handled depends on your end user's computer/browser settings, installed plug-ins, etc...  In some cases the PDF will launch in the browser window.  In other cases it may download to the user's hard drive or it may launch inside Acrobat (if they have it).  Too many unknown variables here...
    The best advice I can give you is to keep it simple.  Link directly to your PDF file and use target="_blank" to open it in a new window or tab.  And be nice to your site visitors, tell them it's a PDF file and approx. how big the file size is in KB.
    Link (PDF -- 250KB)
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Link behavior inside a pdf

    I created a document using Word and "published" it as a pdf for our website.   During document creation, I specified that certain links would open up in a new window/tab.  However, this behavior did not follow the links into the pdf.
    The links all open in the same window, and this necessitates the use of the "back" button to go back to the original document.
    I would like to specify that certain links - not all - open in a new window or tab.  I have acrobat pro.  How do I do it?

    You simply don't have that level of control of the browser from a PDF. I think the best you can do is use the app.launchURL JavaScript method instead: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.150.html
    but it has problems working with protected mode with Reader and relies on JavaScript being enabled.

  • Assigning a URL link to button in a Flash Player

    I've designed a player in Flash using Action Script 3. I've
    built a rollover button into the player that users will click to
    link to a new page. But where do I assign the URL for that button
    to link to; there's no apparent field for this in the properties
    inspector.
    I was able to make it work by switching over to Action
    Script 2 and assigning a "Go to Web Page" behavior to the button;
    but I can only do this in Action Script 2 (where behaviors are
    available), and I have to keep the page in Action Script 3 in order
    to support other components (Slideshow Pro).
    Surely there is a way to assign a simple URL link to a
    button in Action Script 3. Thanks for the help,
    Chris

    yes, you need to write AS3 script in order to do so:
    [code]
    buttonInstanceName.addEventListener(MouseEvent.CLICK, navTo);
    function navTo(e:MouseEvent) {
    var url = new URLRequest('
    http://www.theaddresshere.com);
    navigateToURL(url);
    [/code]
    place this on the first frame where you button is
    instantiated, in a layer you name 'actions' - with the frame
    selected, open the Actions panel (F9) and enter the script there.
    replace the "buttonInstanceName" with the instance name of the
    button on the stage you're assigning this method to, and of course
    replace the address in the URLRequest parameter.

  • Linked files and underlined text confusion

    I'm running into some unexplained and strange behaviors in a simple Web page I just put up. The URL is http://www.elliottbaypipeband.com/Chunes/EBPBMusic/2011Music.html
    Problem 1:
    I've linked PDF files to text that describes the tune names. These links work fine. I've also linked "EP3" files to the little note icon that precedes the tune name. These links don't work. The different browsers report the linked file isn't found.
    Problem 2:
    There are four text containers on the page. The first line of text in the first one "Tunes of Glory", is displayed correctly without any underlining. The first line of text in the other three "Concert Music", "Competition Music", and "Legend" are all underlined. Similarly, all of the text in the Legend text container are underlined when viewed in a browser. Only the Comments one should be as it is linked to an email address.
    I can't figure out these problems. Any ideas from the experts?
    Thanks

    I think I have sorted out these problems.
    The EP3 linked file problem was a a file type not explicitly allowed on the Web server I was using. I can fix that.
    I worked-around the odd font underlining by using a subtle shadow setting. Now the page looks like I want it to at lease in Safari. It seems that there are a number of quirks like this in iWeb. That's a little disappointing but certainly not a show stopper and not surprising. Software always has quirks.

  • Strange behavior of GetStringUTFChars in Linux

    Good evening!
    I made an implementation of a native method in C++ for Windows and Linux, in windows it works fine, but in Linux I have a strange behavior of GetStringUTFChars here is the piece code :
    JNIEXPORT jint JNICALL Java_MyNativeMethod
    (JNIEnv *env, jobject obj, jstring IpAddress) {
    const char * ccpIpAddress = env->GetStringUTFChars(IpAddress, 0);
    jsize size = env->GetStringLength(ccpIpAddress);
    trace("IpAddress : %s size: %d", ccpIpAddress, size);
    Absolute normal... but when I pass as parameter a string '192.168.1.11'
    I receive from 'IpAddress : HB&#317;1 size: 0' to 'IpAddress : P9D7D6DwD&#65533;MS\H#M\H : 251'
    I made a little and simple test to print a String to verify if is Linux problem but IT WORKED FINE!
    I've notice that the differences between both programs are that the wrong one has been linked with a C lib, but the #define __cplusplus is OK also, and all the compile process use C++ code...
    This is my compilation line
    g++ -o lib{myLib}.so {myImpl}.cpp lib{C li}.so libstdc++.so -I {JAVA_HOME}/include/ -I {JAVA_HOME}/include/linux/ -shared -static -L{JAVA_HOME}/jre/lib/i386/
    (variables put for clarity) and (I tried with gcc also)
    the libstrd++.so is been used in my simple test link options too.
    I was wondering if there is some -Doption which should be defined that
    functions->GetStringChars(this,str,isCopy); implementation ask for...
    or if the link with a C code is messing the things in a different behavior
    Thanks for the help
    Pedro Ribeiro
    Sao Paulo - Brazil

    JNIEXPORT jint JNICALL Java_MyNativeMethod
    (JNIEnv *env, jobject obj, jstring IpAddress) {
    const char * ccpIpAddress = env->GetStringUTFChars(IpAddress, 0);
    jsize size = env->GetStringLength(ccpIpAddress);
    trace("IpAddress : %s size: %d", ccpIpAddress, size);
    =====================
    You tried to get the string length of C character array.
    I think you can get the length of jstring alone.
    Please advice me if I am wrong

  • AutoSuggest behavior not always working

    Hi everyone,
    JDeveloper 11.1.1.5.0
    I know how vague the title sounds, sorry for that :-)
    We want to implement autosuggest behavior on a simple input text. While this simple task seems to work on a normal page, it doesn't so with the structure of pages, templates, regions and taskflows we have in place.
    To simplify our test case, we base the autosuggest behavior on a simple managed bean method that always return a static list of selectItems.
        public List handleAutoSuggest(FacesContext facesContext,
                                      AutoSuggestUIHints autoSuggestUIHints) {
            // Add event code here...
            List<SelectItem> returnList = new ArrayList<SelectItem>();
            returnList.add(new SelectItem("Item 1"));
            returnList.add(new SelectItem("Item 2"));
            returnList.add(new SelectItem("Item 3"));
            return returnList;
        }   <af:inputText label="Enter Data" id="it1">
        <af:autoSuggestBehavior maxSuggestedItems="10"
                                suggestItems="#{testAutoSuggestBean.handleAutoSuggest}"/>
      </af:inputText>The effect that we see is that when we put the input text field on our application pages, we only see the rolling image indicating that the data is fetched,
    but we never see the list.
    I've tried the following:
       * Created a page with the input text and autosuggest behavior on. When running the page directly, everything works
       * Added the page on the taskflow, of the original application, as default action. We see the running image, but no list
       * Created a taskflow with the page. Added the taskflow on the page as a static region. Everything works
       * Added the taskflow on the page as a dynamic region, again we don't see the list
       * Created a new application trying to reproduce, without success
    Does anyone know how to best tackle this problem?
    Thank you in advance.
    Filip Huysmans

    Hi ADF7,
    thanks for the links. I had read them already before posting this threat.
    It is not that the autosuggest is not working, it just doesn't work on the pages we are using.
    If we put our component on a new empty page, it all works.
    I believe that it is a combination of templates and dynamic regions, that causes the issue.
    But I've no idea on how to investigate this.
    At one point I thought it was due to the dynamic regions, so I created a seperate project just to test this. But in the other project everything works.
    Any pointers on how to find out an issue like this?
    Thank you in advance.
    Filip Huysmans

Maybe you are looking for

  • How to use .joboptions (Printer settings) to make PDF

    Hi, Currently we using .joboptions settings file to change the Printer setting of PDF & make another PDF with that settings. Following is the non-programmatical process to use .joboptions Control Panel\Hardware and Sound\Devices and Printers -> Adobe

  • Problem while using receive after invoke activity

    Hi,i have got a problem while using a receive activity,after a invoke activity.The invoke acivity seems that does not work and also the debugger runs forever....But if i remove the receive activity,the invoke activity works fine. <h2>The output of Gl

  • Calling abap web service from webdynpro

    hi, i have a problem in that i am trying to call an ABAP web service published from r/3 in webdynpro. when i browse to the url generated by the r/3 application server it asks for my r/3 user name and password (not to be confused with http proxy user

  • Removing spaces in Image Slider

    Hi all. I'm new to muse, website design, and HTML so I'm an uber noob and have been just googling everying I can't figure out. My current issue is that I've worked out how to a put a sliding image gallery but I can't figure out how to remove the spac

  • How can I resolve StackTrace data into a Method?

    Howdy, I am aware that using StackTraceElement will get me a method name, class name, and line number. I'd like to resolve this information to a java.lang.reflect.Method, but when method names are overloaded there is no indicator (other than line num