Images with hyperlink in javascript - help needed

Hai,
I am having two hyperlinks say, "Good Morning" and "Good Evening". When I am clicking "Good Morning", a small arrow or a picture should display with the hyperlink.
When I am clicking "Good Evening" this one should have the small arrow or a picture and "Good Morning" will be displayed normally (without picture).
How can I do this using javascript?
Did anyone has the code? Pls help me.
<html>
<head>
<title>
Moves the Arrow When Clicked the Headings for Sorting purpose
</title>
<SCRIPT language="JavaScript">
function remove_picture() {
function set_picture() {
</SCRIPT>
</head>
<body bgcolor="peachpuff" width="90%" align="center">
<table>
<tr>
<td align="left">Good Morning</td>
<td>Good Evening</td>
</tr>
</table>
</body>
</html>
- yogee

<html>
  <head>
    <style type="text/css">
      #notclicking .highliter {
        display: none;
      #clicking .highliter {
        display: inline;
    </style>
    <script type="text/javascript">
      function showHighliter(elem) {
        elem.id="clicking";
      function hideHighliter(elem) {
        elem.id="notclicking";
    </script>
  </head>
  <body>
    <a href="#" id="notclicking"
       onfocus="showHighliter(this);"
       onblur="hideHighliter(this)">
      <img border="0" class="highliter"
           src="http://forum.java.sun.com/im/duke.gif"/>
      Good Morning
    </a><br/>
    <a href="#" id="notclicking"
       onfocus="showHighliter(this);"
       onblur="hideHighliter(this)">
      <img border="0" class="highliter"
           src="http://forum.java.sun.com/im/duke.gif"/>
      Good Evening
    </a><br/>
  </body>
</html>

Similar Messages

  • Javascript Help Needed to Show/Hide Regions

    version 4.0.2.00.07
    Hello,
    I'm hoping that someone would help me with creating a Javascript function to Show/Hide regions.
    I have a Select List defined as Checkboxes that when clicked I would like to show specific regions that contain fields that are specific to that checkbox selection. There are currently four selections available. There are two selections that would show one region and the other two selections would show the other region.
    Please let me know if I need to clarify anything.
    Thanks,
    Joe

    There is an out-of-box solution that may help you - check out the "Customisation" section in the region properties.
    Otherwise, you might like to explore using a Dynamic Action to show/hide your region based on an event on your relevant checkbox.
    Either way, you should have a declarative solution when you thought you might need to hand-code some javaScript :-)
    ps - thanks for providing your Apex version.

  • IPhone 3G 8GB Crashes when syncing with iTunes. URGENT HELP NEEDED.

    I have latest iTunes and OS on my iPhone 3G...
    Every time i plug my iPhone in it begins to sync and then iTunes will freeze and not respond..
    I have tried re installing iTunes.. I can't reset my iPhone as i can't create a backup..
    URGENT HELP NEEDED PLEASE!

    I don't have an iphone, but if it's anything like my click-wheel ipod, a reset doesn't delete anything.
    It just resets the ipod's operating system, kind of like a PC restart. Did you try this Sleep/Wake button thing mentioned here?
    http://support.apple.com/kb/HT1737
    Maybe it's a podcast of voice memo causing the problem like it did for this person
    http://discussions.apple.com/message.jspa?messageID=10907809#10907809
    That's all I got. You might have better luck on an iPhone forum. Everyone there would probably have one. Like I said, I don't.

  • How do I save an image with hyperlinks so it can be put in an e-mail?

    I designed an e-mail and used the slice tool to insert hyperlinks. Now I want to save it so that it can be put in the body of the e-mail with the hyperlinks active and usable. Any suggestions?
    Thanks!
    BI

    When you preview the image from the save for web dialog box, it will open your browser to see the image. It also will have the necessary html code needed for the links to work. Just copy that html code and add it to your email code with the image.

  • Math.min JavaScript help needed

    Hello,
    I am trying to write a script for a fillable PDF in Adobe Acrobat, but I don't have much experience with JavaScript and I need some help!
    Basically I have three fields as follows:
    A1 = a field with a number value in it
    B1 = a field with a number value in it
    C1 = a field where the sum calculation will be.
    I want to write a script that will enter the lesser of the values in A1 and B1 into C1. If no value has been entered into B1, then it enters the value of A1 into C1.
    This is what I have come up with so far:
        // Get the field values, number fields as numbers
        var d1 = getField("A1").value;
        var d2 = +getField("B1").value;
        // Set the field value to either A1 or B1, whichever is lesser
         event.value = Math.min(d1,d2);
    Some of the problems with the script so far are:
    It does not calculate correctly if there is no value entered in B1 (should give just A1).
    It doesn't update the event.value if A1 is changed (until another form field is modified)
    Can anyone help??
    Thanks!

    Adjusted the field calculation order fixed question 2.
    The script given as answer worked great except for one area.
    B1 values can range from 0 and up. If a 0 is entered in B1, then the Math.min ignores it since d2=="".
    I can get around that problem by having a default value set in B1 of -1 (outside of the range). I'd prefer that there not be a default value set.
    Any suggestions? I appreciate the help.

  • If/then JavaScript help needed

    Hello,
    I am trying to write a script for a fillable PDF in Adobe Acrobat, but I don't have much experience with JavaScript and I need some help!
    Basically I have five fields as follows:
    A1 = a checkbox
    B1 = a field with a number value in it
    C1 = a field with a number value in it
    D1 = a field with a number value in it
    E1 = a field where the sum calculation will be.
    I want to write a script that will enter the sum of values of B1+C1+D1 into E1 if the checkbox in A1 is checked yes.
    If it is not checked yes, then it will enter the sum of values of B1+C1+ the value of D1 divided by 2 (and rounded down) into E1.
    Can anyone help??
    Thanks!

    This should do it as the custom Calculate script for E1:
    // Custom calculate script
    (function () {
        // Get the field values, number fields as numbers
        var a1 = getField("A1").value;
        var b1 = +getField("B1").value;
        var c1 = +getField("C1").value;
        var d1 = +getField("D1").value;
        // Set this field (E1) value based on the state of the check box
        if (a1 === "Off") {
            event.value = b1 + c1 + d1;
        } else {
            event.value = b1 + c1 + Math.floor(d1 / 2);

  • Javascript Help Needed Again

    Hi there, I am not very good with Javascript, so was looking
    for some help.
    I have a select list for an order checkout page, which is
    basically how
    people heard about the site. You select one, and depending on
    what it
    is, another form field will appear with a message asking for
    more detail.
    For instance, if they selected Search Engine, another field
    would appear
    with the text "Which search engine" and a form field for them
    to enter
    it into.
    What is the best way to do this? Some of the options in the
    select list
    won't need the additional field.
    Cheers,
    Steve

    Dooza wrote:
    > Dooza wrote:
    >> Hi there, I am not very good with Javascript, so was
    looking for some
    >> help.
    >>
    >> I have a select list for an order checkout page,
    which is basically
    >> how people heard about the site. You select one, and
    depending on what
    >> it is, another form field will appear with a message
    asking for more
    >> detail.
    >>
    >> For instance, if they selected Search Engine,
    another field would
    >> appear with the text "Which search engine" and a
    form field for them
    >> to enter it into.
    >>
    >> What is the best way to do this? Some of the options
    in the select
    >> list won't need the additional field.
    >
    > Ok, I have almost got this sussed, just need some syntax
    help :)
    >
    > function toggleElement(sel1, element1) {
    >
    > element1 = document.cart.elements[element1];
    > //alert(element1.value);
    > if (sel1.value == 'searchenginelisting') {
    > element1.value = 'Which search engine?';
    > element1.style.display = 'inline';
    > }
    > if (sel1.value == 'searchenginesponsored') {
    > element1.value = 'Which search engine?';
    > element1.style.display = 'inline';
    > }
    > if (sel1.value == 'banner') {
    > element1.value = 'Which website?';
    > element1.style.display = 'inline';
    > }
    > else {
    > element1.value = ''; // input text will be empty
    > element1.style.display = 'none'; // hide text element
    > }
    > return;
    > }
    >
    > It currently only works when you select banner from the
    select list.
    > When you select the first 2 it does nothing. Its the way
    its nesting the
    > IFs, can anyone tell me how to sort this out?
    >
    > Cheers,
    >
    > Steve
    function toggleElement(sel1, element1) {
    var element1 = form.elements[element1];
    if (sel1.value == 'searchenginelisting' ||
    sel1.value == 'searchenginesponsored'){
    element1.value = 'Which search engine?';
    element1.style.display = '';
    return;
    if (sel1.value == 'banner') {
    element1.value = 'Which website?';
    element1.style.display = '';
    return;
    element1.value = ''; // input text will be empty
    element1.style.display = 'none'; // hide text element
    Mick

  • SQL Server Database Connectivity with Visual Studio 2012 - Help Needed

    Hello,
    I am having Visual Studio 2012 and SQL Developer 4.0 installed on my system with Windows 8 - 64bit
    I want to shift a VS project with an SQL database connectivity to another new Laptop (above mentioned) ...
    I have the project opened in VS without bieng connected to the database.. 
    I have a backup file of the database (which needs to be restored to a new created database on SQL Developer) 
    The problem:
    I am unable to create a server connection in SQL Developer which will allow me to create a new database followed by the recovery from backup file.
    I am getting the following error message when I try to create a connection:
    Status: Faliure - IO error: The network adapter could not establish a connection
    Please help me in setting up a server connection and adding a new sql database

    The error message seemed unfamiliar to me and since I had never heard of SQL Developer before, I went to Google. Google might be pulling my legs, but it appears that SQL Developer is related to Oracle. This forum is devoted to SQL Server, so you are in the
    wrong place.
    Try finding a forum for SQL Developer.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Show HashMap in Datatable. UIColumn with embedded Datatable. Help Needed

    Hi,
    I am trying to display a HashMap in a datatable where the values for each key is an ArrayList e.g.
            ArrayList al = new ArrayList();
            al.add("AA");
            al.add("BB");
            al.add("CC");
            HashMap hm = new HashMap();
            hm.put("ONE", al);
            ArrayList al2 = new ArrayList();
            al2.add("AA2");
            al2.add("BB2");
            al2.add("CC2");
            hm.put("TWO", al2);Now I have a Datatable with two columns. First column shows the key and the second column I again have
    a datatable to show the ArrayList. So I will have one row with a key and the values again shown in a
    datatable. So far I no luck and need some help on how to achieve this. Here is the index2.jsp code I have:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=windows-1252"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <f:view>
      <html>
        <head>
          <meta http-equiv="Content-Type"
                content="text/html; charset=windows-1252"/>
          <title>index2</title>
        </head>
        <body><h:form binding="#{backing_index2.form1}" id="form1">
        <h:dataTable value="#{backing_index2.entrySet}" var="var1"
                         binding="#{backing_index2.dataTable1}" id="dataTable1" border="1">         
              <h:column>
                <f:facet name="header">
                  <h:outputText value="Keys"/>
                </f:facet>
                <h:outputText value="#{var1.key}"/>
              </h:column>
              <h:column>
                  <f:facet name="header">
                      <h:outputText value="Values"/>
                    </f:facet>
                  <h:dataTable value="#{backing_index2.entrySet}" var="var2"
                             binding="#{backing_index2.dataTable2}" id="dataTable2">             
                      <h:column id="col2">
                        <h:outputText id="out3" value="#{var2.value}"/>
                      </h:column>
                </h:dataTable>
              </h:column>
            </h:dataTable>
        </h:form></body>
      </html>
    </f:view>And here is the backing bean Index2.java I have:
    package project1.backing;
    import java.util.ArrayList;
    import java.util.HashMap;
    import java.util.List;
    import javax.faces.component.html.HtmlDataTable;
    import javax.faces.component.html.HtmlForm;
    public class Index2 {
        private HtmlForm form1;
        private HtmlDataTable dataTable1;
        private HtmlDataTable dataTable2;
        private List entrySet;
        private HashMap hm;
        public Index2() {
            ArrayList al = new ArrayList();
            al.add("AA");
            al.add("BB");
            al.add("CC");
            hm = new HashMap();
            hm.put("ONE", al);
            ArrayList al2 = new ArrayList();
            al2.add("AA2");
            al2.add("BB2");
            al2.add("CC2");
            hm.put("TWO", al2);
            entrySet = new java.util.ArrayList(hm.entrySet());
         //here it only prints two rows as i have two keys but on the output it
         //does not come up fine
            for (int i = 0; i < entrySet.size(); i++) {
                System.out.println("==== " + entrySet.get(i));
        public void setForm1(HtmlForm form1) {
            this.form1 = form1;
        public HtmlForm getForm1() {
            return form1;
        public void setDataTable1(HtmlDataTable dataTable1) {
            this.dataTable1 = dataTable1;
        public HtmlDataTable getDataTable1() {
            return dataTable1;
        public void setDataTable2(HtmlDataTable dataTable2) {
            this.dataTable2 = dataTable2;
        public HtmlDataTable getDataTable2() {
            return dataTable2;
        public void setEntrySet(List entrySet) {
            this.entrySet = entrySet;
        public List getEntrySet() {
            return entrySet;
        public void setHm(HashMap hm) {
            this.hm = hm;
        public HashMap getHm() {
            return hm;
    }Now when I run this application the keys are shown in the respective column but values are coming up as
    [AA2, BB2, CC2] in one row rather in a separate Row as I am using a Datatable inside UIColumn to show the values.
    Here is what I see in the output:
    keys        Values
    TWO         [AA2, BB2, CC2]
                [AA, BB, CC]
    ONE         [AA2, BB2, CC2]
                [AA, BB, CC] As above output is not correct as it shows both list values in front of each key rather than what those
    keys are tied to. I wanted the following output:
    keys        Values
    ONE         AA
                BB
             CC
    TWO         AA2
                BB2
             CC2So I can do sorting pagination on the values datatable. But currently the output is not shown correctly. Any help
    is really appreciated. My hashmap will be populated dynamically so wants to show the key and values in separate column
    but also need to show the values in an embedded datatable as the list can be huge.

    Rather use a Collection of DTO's. See http://balusc.xs4all.nl/srv/dev-jep-dat.html for some insights. There is also a section "Nesting datatables".

  • Problems with my new E5, help needed

    I just got me a new E5 about a week ago.  Despite reading a lot on this forum, I still have two major issues setting up this device; so I need some help.  Problem number one is that I cannot set up my email.  I have "aol" email that falls under "other" in the email set up section. Some of the screens listed in Pool of Knowledge subsection (like choosing POP3 or IMAP) does not even come up in my e5 during email setup screens. What to do to set up aol email account.
    Problem number 2 is that I cannot transfer my contacts and other data from old device (Nokia X2-01) to the new e5. I paired them easily using Bluetooth but when it get to the point of transferring the data, I hear a "click" sound in the e5 and "Bluetooth disconnected.... " error message comes on. I have tried upteenth times but I get the same result. When I tried to transfer contacts one by one, using Bluetooth business card option it works; but I have over 800 contacts and I would like to use the switch route.  What to do to solve this problem?.  I hope I do not have a faulty device.
    With God, all things are possible

    I can't help you with the contacts problem, but have you made any progress with email? Just because you pick the Other category, doesn't mean you need to enter every server detail. I use Earthlink email, but simply typing my email address causes the wizard to fill in every other detail besides my password. (Curiously, it always uses the wrong SMTP server.) But once setup finishes, I can change any of the settings. I hope that helps. (And BTW, the above may not apply if you opt for using Nokia's push service.)

  • Oracle 11G Install on Win 7 With PL/SQL Developer Help Needed

    Today is my first day with Oracle. I have tried to Install Ora11g from our network drive.I think the installation went fine. I also installated PL/SQL Developer when i try to log in i got the following error see below.
    PL/SQL Developer - (Not logged on)
    Initialization error
    SQL*Net not properly installed
    OracleHomeKey: SOFTWARE\ORACLE
    OracleHomeDir:
    OK
    After i did some research online i found this solution "go to Tools > Preferences > options set manually "Oracle Home" to the folder of ORACLE_HOME and "OCI Library" to the oci.dll file located in ORACLE_HOME/bin/oci.dll"
    C:\app\user\product\11.2.0\client_1\bin.dll <=== I believe this is my Oracle_Home
    C:\app\user\product\11.2.0\client_1\bin\oci.dll <==== Is my OCI Library.
    When i apply thse 2 paths i get the following error.
    Initialization error
    COuld not load " C:\app\user\product\11.2.0\client_1\bin.dll
    OCIDLL forced to C:\app\user\product\11.2.0\client_1\bin.dll
    LoadLibrary(C:\app\user\product\11.2.0\client_1\bin\.dll)returned 0
    Can someone help me with this ???????????????/

    Pl indicate which version of Win 7 - you will need Professional or higher - Home versions are not supported/certified, so things may or may not work as expected.
    http://download.oracle.com/docs/cd/E11882_01/install.112/e16773/reqs.htm#CHDHGGFE
    HTH
    Srini

  • Image with hyperlink

    In iWeb you can have an image as a hyperlink [email url file etc]. It would appear that in iBooks Author you can only have text as a hyperlink. If that is not the case then how would you turn a 'facebook' icon [*.jpg] into a webpage hyperlink?

    Thanks for the prompt help very much appreciated. I guess this is really an issue for the Apple developers given that they delivered the functionality in iWeb it is difficult to understand why it was not delivered in iBA Ant..

  • Problems with my MAC PRO, Help needed please!

    Im a photographer using a MAC PRO 2x2 GHz DUAL-CORE INTEL Xeon, MEMORY 1GB 667 mhZ with a Samsung SyncMaster 215tw.
    My problem is, on several of my images that I open on either Photoshop cs2 or even Preview I noticed that my blacks look overly pix elated or solarize simple looks like a broken image. I had the image sent to my roommate's Imac and saw the same image there and it looked perfect but not on my Mac Pro. I wondering what's causing this problem. thank you very much.

    Hi again,
    Just wondering: by any chance do you have a website where you could upload (at least) one of those photos so I (and we) could get a look at it ourselves?
    I use Photobucket.com, I created an separate album there I call "Illustrated Explanations" where others can see (and even copy) examples of photos I want to share or get feedback on.
    I like your choice of color profiles for the SynchMaster (Adobe RGB 1998), but are those photos also given the same color profile? If not - there may be a "conflict" between the different profiles which could explain your problem. But there's more to it than that -
    Yes, you should have clicked the "Calibrate" button and gone through the calibration steps presented to you. Right now, on the Displays - Color panel, I have three calibration settings for the SynchMaster. First is the original, 2nd one is my first try at re-calibrating and the third is my final * I hope!* calibration. You have to enter a name for each calibration profile you create, mine are: "SyncMaster," "SynchMaster1" and "SynchMaster2." The last is the one the monitor is set to.
    As you see, you can do this several times if needed. But if the problem is not eliminated by this procedure, then I would (very much!) think you have a bad monitor and should have it serviced or replaced.

  • Problems with restricted users, urgent help needed

    Greetings,
    I represent a company called eChiron, a service desk company for several client companies.
    We have a client company that has bought between 100 to 200 cell phones, all Nokia 6233. They all run client PCs with windows XP SP2 and are all restricted users (mandatory).
    We've installed 2 nokia PC suites as pilot prior to mass deploying and have both failed to run correctly.
    They execute correctly if the user is changed to local admin (being that the method of instalation), but when reverting back to restricted user the application doesn't work correctly.
    It starts and (apparently) conects to the mobile phone trough bluetooth interface. In reality the conectivity is nonexistent (we've tested by turning off the mobile phone...) and the connection log reports "conection failed".
    As i mentioned before, it's not an hardware fault since it all works correctly in admin mode.
    Thanks in advance for any possible help,
    J
    Edit: the installed version is the latest (17/december) and the language is portuguese.
    Message Edited by echiron on 17-Dec-2007 02:27 PM

    This has always been a limitation in PC suite, I assume you've tried the latest version 6.85?
    You may want to take a look at the link below, it may suit your needs better.
    http://www.businesssoftware.nokia.com/pc_suite_downloads.php

  • Download/Open .pdf files with Windows 8.1 - Help needed urgently!

    Hi, all. I hope this is not a stupid question, but can someone please help with downloading/opening .pdf files?
    I am running Adobe Acrobat XI Pro, latest version (no updates available) on a Windows 8.1 platform. When I attempt to download a .pdf file (ANY .pdf file!), my system gives me this error message -
    "Adobe Acrobat does not support Internet Explorer's 64-bit mode. Either install the latest version of Adobe Reader, or disable 64-bit mode in Internet Explorer"
    I find this baffling. If I could find a later version of Reader than what I have, I would like to try it - but, Adobe updates tells me I have the latest version of Reader. Also, as above, I have the latest version of Acrobat - if Reader could support 64-bit, surely Acrobat XI Pro could?
    Can some kind person please help?

    Hi Peter,
    (I updated your title, so now help is indeed, "needed," and not "nedded." Been there myself plenty of times.)
    In any case, is it possible that you're running Reader X, and have the latest updates of that? If so, please consider downloading Reader XI, and make sure you're running version 11.0.07. And, this document offers instructions for setting up your browser to display PDFs when you're using Acrobat XI or Reader XI: Acrobat Help | Display PDF in browser | Acrobat, Reader XI
    Please let us know how it goes.
    Best,
    Sara

Maybe you are looking for