0 Replies Latest reply on Aug 4, 2008 8:57 PM by azilaga

    if/else movie attachment

    azilaga Level 1
      URL: http://www.driveakamai.org/ --> click on Interactive Map in navigation

      DESIRED MOD:
      Replace default blue "i" button with red "i" where applicable.

      DETAILS:
      The line coordinates are drawn from items in an xml file. The "i"

      button is there to pop up an info box within the movie. Items from the XML file read something like this for a default item with a blue "i":

      <item>
      <title>Moana Vista</title>
      <description>Kapiolani Blvd.: No project related lane closures

      scheduled</description>
      <link> http://www.driveakamai.org/main/trafficadvisories.cfm</link>
      <isNewUpdated>no</isNewUpdated>
      <Alert>no</Alert>
      <projectID>P19</projectID>
      <Location>Kapiolani Blvd.: No project related lane closures scheduled</Location>
      <Time></Time>
      <typeOfProject>Day</typeOfProject>
      <typeOfWork></typeOfWork>
      <publish>yes</publish>
      <date>1/29/2008</date>
      <coordinates>green=1178,812.3s|1108,809.15|1078,795.45|</coordinates>
      </item>

      Some new items will have a <weekend> attribute, which will call a red "i" button, and will read as such:

      <item>
      <title>Moana Vista</title>
      <description>Kapiolani Blvd.: No project related lane closures

      scheduled</description>
      <link> http://www.driveakamai.org/main/trafficadvisories.cfm</link>
      <isNewUpdated>no</isNewUpdated>
      <Alert>no</Alert>
      <projectID>P19</projectID>
      <Location>Kapiolani Blvd.: No project related lane closures scheduled</Location>
      <Time></Time>
      <typeOfProject>Day</typeOfProject>
      <typeOfWork></typeOfWork>
      <publish>yes</publish>
      <date>1/29/2008</date>
      <weekend>yes</weekend>
      <coordinates>green=1178,812.3s|1108,809.15|1078,795.45|</coordinates>
      </item>

      QUESTION:
      How do I go about doing this? Attached is what I believe to be the code that attaches the blue button. Can anyone give me some pointer(s) on this?

      Thanks!