Roller Images using templates

I am having trouble getting rollover images to work using
templates.
For example, on the following 2 page templates:
http://www.hollandelectronics.com/Templates/template.dwt
and
http://www.hollandelectronics.com/Templates/oem_products.dwt
I put in several rollover images for the menus navigation up
top. This navigation will be apparent throughout the whole entire
site... so I figured it would be good to use a template.
Same thing with the second link. But the buttons to the left
will only be needed in that category. So I made a sub-template,
based on the first one.
When I created the templates and tested online, the links
will work, but the rollovers do not.
Any help is greatly appreciated - Thank you.

Here's a snip of code from your page -
<a href="../catalog.html"><img
src="../main_images/b1.gif" alt="" name="b1"
width="101" height="24" border="0" id="b1"
onMouseOver="MM_swapImage('b1','','../main_images/b1_over.gif',1)"
onMouseOut="MM_swapImgRestore()">
Note that you have applied the behavior for the rollover to
the <img> tag -
it should be applied to the <a> tag that surrounds the
image. Try changing
your code from that shown above to this -
<a href="../catalog.html"
onMouseOver="MM_swapImage('b1','','../main_images/b1_over.gif',1)"
onMouseOut="MM_swapImgRestore()"><img
src="../main_images/b1.gif" alt=""
name="b1" width="101" height="24" border="0" id="b1">
and see if that helps.
Also, you have what I think is a killer in your js -
function MM_preloadImages() { //v3.0
See that slash? I think that is causing things to not work so
well. Please
remove it.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"jamo1616" <[email protected]> wrote in
message
news:f5p97j$kes$[email protected]..
>I have taken over this site from someone who made it
previously - so the
> decision to use images as rollovers for buttons was not
mine to begin
> with.
> However, it needs to stay that way for now, until I
redesign the whole
> site.
>
> I have updated my code - but still no rollovers.
>
>
http://www.hollandelectronics.com/Templates/template.dwt
>
> It should work like the man page:
>
>
http://www.hollandelectronics.com/
>
> Any thoughts?
>

Similar Messages

  • Problems in accessing Camera Roll images using HTML 5 technology

    Hello,
    I have developed a application using HTML 5 technology. This application is supportable to iPhone 4S. In this application, if we try to upload an image from "Camera Roll" it's not returning properly. The result image is rotated, squeezed and in different format. But this is working perfectly if we upload the image from other folders like Photo Stream.
    No idea why the images from Camera Roll is not returning in proper format.
    Your help and support is much appreciated
    Thanks
    Abdul Cader
    <Link Edited By Host> 

    Hi Abdul
    I've looked at your app and really like the way it accesses Camera Roll - I would be interested in learning more about this project - is there any way I can get in touch with you? Do you have another web site ?
    Nick

  • Known Issue: "DNS server could not be reached" when creating or updating a RemoteApp collection using template images for some locales

    When trying to create or update Azure RemoteApp collections that use a template image for some non-EN-US locales, it might fail with error "DNS server could not be reached". You might also see error code "DnsNotReachable". 

    Cause:  There was a issue in Azure in which decimal punctuation was not treated properly if the locale of the template image used a comma (,) instead of a period (.).
    Workaround:  Before a fix was applied, the workaround was to use template images based on a locale that uses a period to delimit decimals, such as EN-US.
    Resolution:  As of March 19, 2015, a fix for this issue has been applied to Azure. You should once again be able to create collections from template images that use non-EN-US locales. If you continue to have this problem, please
    try the workaround. If that works and the only difference in the template images is the locale, please email remoteappforum (at Microsoft). If the workaround does not work, the issue is likely caused by a DNS configuration issue such as:
    No valid forwarders to public DNS servers configured on your internal DNS server(s).
    A valid internal DNS server is not specified on your Azure RemoteApp VNet.
    A VNet or internal network configuration issue is preventing the internal DNS servers from be reached by the VMs in the RemoteApp collection.

  • Image in template background do not appear in browser

    Hello all
    I run a site ( http://ntp.neuroscience.wisc.edu/ ) that uses templates for backgrounds/spry menus for its pages. We currently use three templates to display backgrounds across the site and up until a few days ago everything displayed fine, until suddenly the main banner picture (bannerIndex.jpg) dissapeared from across all our pages, both in IE8 and Firefox 3.5. It used to display above the red spry menu tabs on the top of the whitespace. Check the index.dwt file attached to see where exactly. To my memory I didnt edit any of the templates or delete any of the image files, much less reupload the templates or download them from the remote server. I went back and reinserted all the pics into the templates, made sure they were attached to their right pages, and uploaded everything, but to no avail. the only major edit to the site I can remember that might have had an effect was that I rearraged some files on the local/remote server, but the shifts were within the same directory level and the files involved were not templates. I shifted everything back to their original order and still the problem persists. I'm attaching the code below (site first follow by the template which attaches to it) as it shows in the dreamweaver code editor (i'm using dreamweaver cs3) and I'll also attached the actual html and dwt files. again, the picture that does not show is bannerIndex.jpg and it should be above the spry menu tabs.
    <!-- InstanceBegin template="/Templates/index.dwt" codeOutsideHTMLIsLocked="false" --><head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- InstanceBeginEditable name="doctitle" -->
    <title>Neuroscience Training Program</title>
    <!-- InstanceEndEditable -->
    <!-- InstanceBeginEditable name="head" -->
    <style type="text/css">
    <!--
    .style3 {
        font-size: 18px;
        color: #FF0000;
    -->
    </style>
    <style type="text/css">
    <!--
    .style4 {
        font-family: Verdana, Arial, Helvetica, sans-serif;
        font-weight: bold;
        font-size: 14px;
    -->
    </style><!-- InstanceEndEditable -->
    <link href="Templates/index.css" rel="stylesheet" type="text/css">
    <link rel="shortcut icon" href="images/brain.ico">
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css">
    <style type="text/css">
    <!--
    .style1 {color: #000000}
    -->
    </style>
    <!--[if lt IE 7.]>
    <script defer type="text/javascript" src="pngfix/pngfix.js"></script>
    <![endif]-->
    </head>
    <body background="images/bgstripes2.jpg">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td> </td>
        <td> </td>
        <td class="banner" colspan="7"><img src="images/bannerIndex.jpg"></td>
        <td> </td>
        <td> </td>
      </tr>
      <tr>
        <td> </td>
        <td> </td>
        <td class="button">
          <ul id="MenuBar1" class="MenuBarHorizontal">
            <li><a class="MenuBarItemSubmenu" href="programlist.html">Program</a>
                <ul>
                  <li><a href="program/welcome.html">Welcome</a></li>
                  <li><a href="contact.html">Contact</a></li>
                  <li><a href="news.html">Recent News</a></li>
                  <li><a href="program/highlights.html">Overview</a></li>
                  <li><a href="program/progress.html">Getting a Degree</a></li>
                  <li><a href="program/courses.html">Graduate Courses</a></li>
                  <li><a href="program/seminar/seminar.html">Seminars</a></li>
                  <li><a href="program/lecture.html">Lecture Series</a></li>
                  <li><a href="program/jrnlclub.html">Journal Clubs</a></li>
                  <li><a href="program/map.html">Directions</a></li>
              </ul>
            </li>
          </ul>
        </td>
        <td class="button">
          <ul id="MenuBar2" class="MenuBarHorizontal">
            <li><a class="MenuBarItemSubmenu" href="researchlist.html">Research</a>
              <ul>
                    <li><a href="research/strengths.html">Strengths</a></li>
                    <li><a href="faculty/facultyMain.php">Faculty Research</a></li>
                    <li><a href="students/studentMain.php">Student Research</a></li>
              </ul>
            </li>
          </ul>
        </td>
        <td class="button">
          <ul id="MenuBar3" class="MenuBarHorizontal">
              <li><a class="MenuBarItemSubmenu" href="admissionslist.html">Admissions</a>
                  <ul>
                    <li><a href="admissions/admission.html#admissions">Requirements</a></li>
                    <li><a href="admissions/admission.html#materials">Application</a></li>
                    <li><a href="admissions/admission.html#aid">Financial Aid</a></li>
                    <li><a href="admissions/feegrant.html">Fee Grants</a></li>
                    <li><a href="admissions/admission.html#status">Application Status</a></li>
                    <li><a href="admissions/faq.html">FAQ's</a></li>
                    <li><a href="admissions/checklist.html">Check List</a></li>
                    <li><a href="http://npp.neuroscience.wisc.edu/">Public Policy Program</a></li>
                  </ul>
              </li>
          </ul>
        </td>
        <td class="button">
          <ul id="MenuBar4" class="MenuBarHorizontal">
              <li><a class="MenuBarItemSubmenu" href="resourcelist.html">Resources</a>
                  <ul>
                      <li><a href="resource/currstudents/currstudents.html">Current Students</a></li>
                    <li><a href="resource/coursePages.html">Course Pages</a></li>
                    <li><a href="resource/midlevel.html">Course Requirements</a></li>
                    <li><a href="resource/StudForms/studforms.html">Forms</a></li>
                    <li><a href="resource/alumni/alumni.html">Alumni Directory</a></li>
                    <li><a href="univlist.html">The University</a></li>
                    <li><a href="resourcelist.html#moreResources">More Resources</a></li>
                  </ul>
              </li>
          </ul>
        </td>
        <td class="button">
             <ul id="MenuBar5" class="MenuBarHorizontal">
              <li><a class="MenuBarItemSubmenu" href="eventslist.html">Events</a>
                  <ul>
                    <li><a href="events/AnnualPicnic/index.htm">Annual Picnic</a></li>
                    <li><a href="events/SumGradFair/index.htm">Graduate Fair</a></li>
                    <li><a href="events/k-12.htm">K-12 Outreach</a></li>
                    <li><a href="events/PosterFair/index.htm">Poster Fair</a></li>
                    <li><a href="events/ReSymp/index.htm">Research Symposium</a></li>
                  </ul>
              </li>
          </ul>    
        </td>
        <td class="button">
          <ul id="MenuBar6" class="MenuBarHorizontal">
              <li><a class="MenuBarItemSubmenu" href="undergradlist.html">Undergrad</a>
                  <ul>
                    <li><a href="http://www.biology.wisc.edu/Academic_Programs/Biology/Neurobiology/index.asp">
                           Neurobiology Major Option</font></a></li>
                    <li><a href="undergrad/ugcourses.html">Undergraduate Courses</a></li>
                    <li><a href="undergrad/resopp.html">Research Opportunities</a></li>
                    <li><a href="undergrad/reaward.html">Research Awards</a></li>
                    <li><a href="http://www.wisc.edu/cbe/research/funding.html">Research Funds</a></li>
                    <li><a href="http://neurosci.rso.wisc.edu/" target="_blank">Neuroscience Society</a></li>
                    <li><a href="undergrad/sciencejobs.html">Jobs in Science</a></li>
                    <li><a href="admissions/admission.html">Application</a></li>
                  </ul>
              </li>
          </ul>
        </td>
        <td  width="100px"> </td>
        <td> </td>
        <td> </td>
      </tr>
      <tr>
        <td> </td>
        <td> </td>
        <td colspan="7" class="topbox"></td>
        <td> </td>
        <td> </td>
      </tr>
      <tr>
        <td> </td>
        <td> </td>
        <td colspan="7" class="middlebox"><div class="content"><!-- InstanceBeginEditable name="content" -->
            <span style="float:right; padding-left:5px;">
                    <img src="Images/quickLinks2.png" alt="Quick Links" width="200" height="35" align="top">
                    <div style="width:200px; border-width:5px; border-style:solid; border-color:cccccc; padding:5px;">
                          <li class="newbullet"><a href="admissions/admission.html#admissions">Admission Requirements</a></li>
                            <li class="newbullet"><a href="faculty/facultyMain.php">Faculty Research</a></li>
                            <li class="newbullet"><a href="resource/midlevel.html">Mid-Level Courses</a></li>
                            <li class="newbullet"><a href="research/strengths.html">Research Strengths</a></li>
                            <li class="newbullet"><a href="program/seminar/semsch.html">Seminar Schedule</a></li>
                            <li class="newbullet"><a href="resource/StudForms/studforms.html">Student Forms</a></li>
            </div>
            </span>
            <a href="http://www.wisc.edu" target="_blank"><img border="0" align="left" src="images/uw_logo.gif" alt="Bascom Hill" width="150" /></a>
            <p>The Neuroscience Training Program was established in 1971. Currently, it comprises over 80 faculty members whose research interests range from molecular neurobiology to integrative systems and computational modeling. The program is designed to prepare students for careers in research and teaching. Training leads to the Ph.D. degree in neuroscience or the M.D./Ph.D. degree in cooperation with the School of Medicine and Public Health.</p>
            <img src="images/program_research.png" /><br />
            <span style="float:right;">
             <div class="newsbox">
             <li class="newbullet2"><em><a href="news.html#anesthesia">Brain Responses During Anesthesia Mimic Those During Natural Deep Sleep</a></em> <br>
    <a href="faculty/tononi.html">Giulio Tononi</a> and <a href="faculty/pearce.html">Robert Pearce</a> investigate where we go when we're sedated.
                <hr>
              </li>
              <li class="newbullet2"><em>Donated Fat Could Play Key Role in Neurosurgery</em> <a href="news.html#lipo">John S. Kuo</a> elevates fat's use from waste to healer.
                <hr>
              </li>
              <li class="newbullet2"><em>Depression saps endurance of brain's reward circuitry.</em> <a href="news.html#depression">Richard Davidson</a> and others discover depression's true nature. 
                <hr>
              </li>
              </li>
              <li class="newbullet2"><em>Can Meditation Sharpen Our Attention? </em><a href="news.html#attention">Richard Davidson</a> rethinks how we can wield our focus.
                <hr>
              </li>
              <li class="newbullet2">Synaptotagmin Plays a Critical Role in Initiating Cellular Fusion</em> features <a href="news.html#chapman">Edwin Chapman</a>
               <hr>
              </li>
              <li class="newbullet2">Wisconsin team grows retina cells from skin-derived stem cells </em>features <a href="news.html#retina">Su-Chun Zhang</a><br>
              <hr>
            </li>
            <li class="newbullet2">Reduced diet thwarts aging, disease in monkeys </em> features <a href="news.html#reduceDiet">Sterling Johnson</a></li>
            <hr>
            <li class="newbullet2">Seeing with your tongue: BrainPort device brings sight to the blind </em> features <a href="news.html#seeingTongue">Paul Bach-y-Rita</a>
              <hr>
            </li>
            <li class="newbullet2">Special protein helps maintain an efficient brain</em> features <a href="news.html#ebrain">Edwin R. Chapman</a></li>
            <hr>
            <li class="newbullet2">Researchers use brain interface to post to Twitter</em> features <a href="news.html#twitter">Justin Williams</a></li>
            <hr>
            <li class="newbullet2">When Minutes Matter</em> features<a href="news.html#minutes"> John Kou</a></li>
            <hr>
            <li class="newbullet2">Sleep: Spring Cleaning for the Brain? </em> features<a href="news.html#sleep"> Giulio Tononi and Chiara Cirelli</a></li>
            <hr>
            <li class="newbullet2">Study of Cat Diet Leads to Key Nervous System Repair Discovery </em> features<a href="news.html#cat"> Ian Duncan</a></li>
            <hr>
            <li class="newbullet2">Building a better brain </em> features<a href="news.html#Bbb"> Richard Davids</a></li>
            <hr>
            <li class="newbullet2"><i>Amazing Aimee</i> features<a href="news.html#aimee"> Aimee Arnoldussen</a></li>
            <hr>
            <li class="newbullet2"><i>Researchers Hail Obama's Order Removing Stem Cell Restrictions</i> features<a href="news.html#obama"> Clive Svendsen</a></li>
            <hr>
            <li class="newbullet2"><a href="news.html#restoration"><i>Let the Restoration Begin</i></a></li>
            <hr>
            <li class="newbullet2"><i>4th Annual Wisconsin Stem Cell Symposium: Cancer, Stem Cells and Cancer Stem Cells</i> features <a href="news.html#Symposium">John S. Kuo</a></li>
            <hr>
            <li class="newbullet2"><i>Psychoactive compound activates mysterious receptor</i> features <a href="news.html#psychoactive">Arnold Ruoho</a></li>
            <hr>
            <li class="newbullet2"><i>How do you mend a broken heart? Maybe someday with stem cells made from your skin</i> features <a href="news.html#brokenheart">Clive Svendsen</a>/li>
            <hr>
            <li class="newbullet2"><i>Mouse study reveals genetic component of empathy</i> features <a href="news.html#mouse">Jules Panksepp</a></li>
            <hr>
            <li class="newbullet2"><i>Early childhood stress has lingering effects on health</i> features <a href="news.html#childhood">Seth Pollak</a></li>
            <hr>
            <li class="newbullet2"><i>Genetic change prevents cell death in mouse model of Parkinson’s disease</i> features <a href="news.html#celldeath">Jeffrey Johnson</a> (NTP faculty)</li>
            <hr>
            <li class="newbullet2"><i>Protein that regulates hormones critical to women’s health found in pituitary</i> features <a href="news.html#protein">Meyer Jackson and Edwin Chapman</a> (NTP faculty)</li>
            <hr>
            </div>
            </span>
            <div class="newsbox">
              <li class="newbullet2"><span class="style1 style1 style1"><a href="news.html#roundtable">Richard Davidson</a> is featured to speak at University Roundtable</span>
                <hr>
              <li class="newbullet2"><span class="style1 style1 style1"><a href="students/balakrishnan.html">Shilpashree Balakrishnan</a> has been honored with a Vilas Travel Award</span>
                  <hr>
        </li> <li class="newbullet2"><span class="style1 style1 style1"><a href="news.html#Davidson">Richard Davidson's</a> research inspires art, dance, and insight on what it means to change.</span>
                  <hr>
              </li>
              <li class="newbullet2"><a href="news.html#Krencik">Robert <span class="style1 style1 style1">Krencik's </span></a><span class="style1 style1 style1">research will be featured at the National Graduate Student Research Festival.</span><a href="news.html#sleepPerformance"><strong><br>
                </strong></a>
                  <hr>
              </li>
              <li class="newbullet2"><a href="news.html#sleepPerformance">Dr. Michael Peterson</a> is looking for males to participate in a study investigating sleep and performance</li>
              <hr>
              <li class="newbullet2"><a href="news.html#Kile">Kile Mangan</a> receiving an Epilepsy Foundation's Health Sciences Student Fellowship Award</li>
              <hr>
              <li class="newbullet2"><a href="news.html#Ashutosh">Ashutosh Dharap</a> received an American Heart Association Predoctoral Fellowship Award</li>
              <hr>
              <li class="newbullet2"><a href="news.html#AnnKelley">Ann Kelley</a> Fellowship in Behavioral Neuroscience</li>
              <hr>
              <li class="newbullet2">Undergrad. Summer Job in <a href="news.html#iskandar">Iskandar lab</a></li>
              <hr>
              <li class="newbullet2"><em>Stem-cell researcher lured to L.A.</em> features <a href="news.html#L.A.">Clive Svendsen</a></li>
              <hr>
              <li class="newbullet2"><a href="resource/StudForms/travel.html">Travel Award Application Form</a> is posted, deadline for application is May 20, 2009</li>
              <hr>
              <li class="newbullet2">1st year NTP student Valerie Grant has received a <a href="news.html#Grant">NSF Graduate Research Fellowship</a></li>
              <hr>
              <li class="newbullet2">NTP to host reception at <a href="news.html#SfN">2009 SfN</a> meeting in Chicago</li>
              <hr>
              <li class="newbullet2"><em>Training Scientists with the Skills Needed to Make Public Policy</em> features <a href="news.html#eletter">Ronald Kalil</a></li>
              <hr>
              <li class="newbullet2">Register for <em><a href="http://ntp.neuroscience.wisc.edu/events/NIH/index.htm">2009 National Institutes of Health Curriculum Workshop</a></em></li>
              <hr>
              <li class="newbullet2"><em>La Follette students attend law and life sciences conference</em> features <a href="news.html#conference">Patric Hernandez, Lindsay Pascal and Ishmael Amarreh</a></li>
              <hr>
              <li class="newbullet2"><i>12 finalists named for five spots in Wisconsin Institute for Discovery</i> features <a href="news.html#finalists">Craig Berridge</a></li>
              <hr>
              <li class="newbullet2"><em>Roundtable unveils spring lineup</em> features <a href="news.html#roundtable">Chiara Cirelli</a> (NTP faculty)</li>
              <hr>
              <li class="newbullet2"><em>Kemnitz to step down as Primate Center director</em> features <a href="news.html#kemnitz2">Joseph W. Kemnitz</a> (NTP faculty)</li>
              <hr>
            </div>
        <!-- InstanceEndEditable --></div></td>
        <td> </td>
        <td> </td>
      </tr>
      <tr>
        <td> </td>
        <td> </td>
        <td colspan="7" class="bottombox"> </td>
        <td> </td>
        <td> </td>
      </tr>
      <tr>
        <td> </td>
        <td> </td>
        <td width="700px" colspan="7">
            <div width="700px" colspan="2" align="center">
                <form action="http://ntp.neuroscience.wisc.edu/search.html" id="cse-search-box">
                  <div>
                      <b>Search NTP: </b>
                    <input type="hidden" name="cx" value="011160202589940358049:xyauj-lfpd0" />
                    <input type="hidden" name="cof" value="FORID:11" />
                    <input type="hidden" name="ie" value="UTF-8" />
                    <input type="text" name="q" size="31" />
                    <input type="submit" name="sa" value="Search" />
                  </div>
                </form>
                <script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en"></script>
                <p><a href="http://npp.neuroscience.wisc.edu">Neuroscience & Public Policy Dual-Degree Program</a>
               <p align="center"><font size="2">7225 Medical Sciences Center<br>
                    1300 University Avenue<br></font>
                    <font size="2">Madison, WI 53706-1532<br><br></font>
                    <font size="2">Tel: (608) 262-4932 </font></p>
               <p align="center">
                     <a href="http://www.wisc.edu">UW Home</a>   
                     <a href="http://www.wisc.edu/grad/">Graduate School</a>   
                    <a href="sitemap.htm">Site Map</a></p>
               <hr align="center" width="50%">
               <p align="center">Copyright &copy; 2003 The Board of Regents of the University
                    of Wisconsin System<br>
                    Page Created
                    <!-- InstanceBeginEditable name="Created" -->February 7, 2008<!-- InstanceEndEditable -->
                    | Last Updated
                    <!-- #BeginDate format:Am1 -->January 28, 2010<!-- #EndDate --><br>
                    Question or Comments, Please Contact <a href="contact.html">Jenny</a> or <a href="contact.html">Jessica</a> at <a href="mailto:[email protected]">
                    [email protected]</a><br>
               </p></div>    </td>
        <td> </td>
        <td> </td>
      </tr>
    </table>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar2 = new Spry.Widget.MenuBar("MenuBar2", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar3 = new Spry.Widget.MenuBar("MenuBar3", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar4 = new Spry.Widget.MenuBar("MenuBar4", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar5 = new Spry.Widget.MenuBar("MenuBar5", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar6 = new Spry.Widget.MenuBar("MenuBar6", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    <!-- InstanceEnd --></html>
    Now Here's the Template
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>List</title>
    <!-- TemplateEndEditable -->
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    <link href="Templates/index.css" rel="stylesheet" type="text/css">
    <link rel="shortcut icon" href="../images/brain.ico">
    <script src="../SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="../SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css">
    <style type="text/css">
    <!--
    .style1 {color: #000000}
    -->
    </style>
    <!--[if lt IE 7.]>
    <script defer type="text/javascript" src="pngfix/pngfix.js"></script>
    <![endif]-->
    </head>
    <body background="../images/bgstripes2.jpg">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td> </td>
        <td> </td>
        <td class="banner" colspan="7"><img src="../images/bannerIndex.jpg"></td>
        <td> </td>
        <td> </td>
      </tr>
      <tr>
        <td> </td>
        <td> </td>
        <td class="button">
          <ul id="MenuBar1" class="MenuBarHorizontal">
            <li><a class="MenuBarItemSubmenu" href="../programlist.html">Program</a>
                <ul>
                  <li><a href="../program/welcome.html">Welcome</a></li>
                  <li><a href="../contact.html">Contact</a></li>
                  <li><a href="../news.html">Recent News</a></li>
                  <li><a href="../program/highlights.html">Overview</a></li>
                  <li><a href="../program/progress.html">Getting a Degree</a></li>
                  <li><a href="../program/courses.html">Graduate Courses</a></li>
                  <li><a href="../program/seminar/seminar.html">Seminars</a></li>
                  <li><a href="../program/lecture.html">Lecture Series</a></li>
                  <li><a href="../program/jrnlclub.html">Journal Clubs</a></li>
                  <li><a href="../program/map.html">Directions</a></li>
              </ul>
            </li>
          </ul>
        </td>
        <td class="button">
          <ul id="MenuBar2" class="MenuBarHorizontal">
            <li><a class="MenuBarItemSubmenu" href="../researchlist.html">Research</a>
              <ul>
                    <li><a href="../research/strengths.html">Strengths</a></li>
                     <li><a href="../faculty/facultyMain.php">Faculty Research</a></li>
                    <li><a href="../students/studentMain.php">Student Research</a></li>
              </ul>
            </li>
          </ul>
        </td>
        <td class="button">
          <ul id="MenuBar3" class="MenuBarHorizontal">
              <li><a class="MenuBarItemSubmenu" href="../admissionslist.html">Admissions</a>
                  <ul>
                    <li><a href="../admissions/admission.html#admissions">Requirements</a></li>
                    <li><a href="../admissions/admission.html#materials">Application</a></li>
                    <li><a href="../admissions/admission.html#aid">Financial Aid</a></li>
                    <li><a href="../admissions/feegrant.html">Fee Grants</a></li>
                    <li><a href="../admissions/admission.html#status">Application Status</a></li>
                    <li><a href="../admissions/faq.html">FAQ's</a></li>
                    <li><a href="../admissions/checklist.html">Check List</a></li>
                    <li><a href="http://npp.neuroscience.wisc.edu/">Public Policy Program</a></li>
                  </ul>
              </li>
          </ul>
        </td>
        <td class="button">
          <ul id="MenuBar4" class="MenuBarHorizontal">
              <li><a class="MenuBarItemSubmenu" href="../resourcelist.html">Resources</a>
                  <ul>
                       <li><a href="../resource/currstudents/currstudents.html">Current Students</a></li>
                    <li><a href="../resource/coursePages.html">Course Pages</a></li>
                    <li><a href="../resource/midlevel.html">Course Requirements</a></li>
                    <li><a href="../resource/StudForms/studforms.html">Forms</a></li>
                    <li><a href="../resource/alumni/alumni.html">Alumni Directory</a></li>
                    <li><a href="../univlist.html">The University</a></li>
                    <li><a href="../resourcelist.html#moreResources">More Resources</a></li>
                  </ul>
              </li>
          </ul>
        </td>
        <td class="button">
              <ul id="MenuBar5" class="MenuBarHorizontal">
              <li><a class="MenuBarItemSubmenu" href="../eventslist.html">Events</a>
                  <ul>
                    <li><a href="../events/AnnualPicnic/index.htm">Annual Picnic</a></li>
                    <li><a href="../events/SumGradFair/index.htm">Graduate Fair</a></li>
                    <li><a href="../events/k-12.htm">K-12 Outreach</a></li>
                    <li><a href="../events/PosterFair/index.htm">Poster Fair</a></li>
                    <li><a href="../events/ReSymp/index.htm">Research Symposium</a></li>
                  </ul>
              </li>
          </ul>    
        </td>
        <td class="button">
          <ul id="MenuBar6" class="MenuBarHorizontal">
              <li><a class="MenuBarItemSubmenu" href="../undergradlist.html">Undergrad</a>
                  <ul>
                    <li><a href="http://www.biology.wisc.edu/Academic_Programs/Biology/Neurobiology/index.asp">
                             Neurobiology Major Option</font></a></li>
                    <li><a href="../undergrad/ugcourses.html">Undergraduate Courses</a></li>
                    <li><a href="../undergrad/resopp.html">Research Opportunities</a></li>
                    <li><a href="../undergrad/reaward.html">Research Awards</a></li>
                    <li><a href="http://www.wisc.edu/cbe/research/funding.html">Research Funds</a></li>
                    <li><a href="http://neurosci.rso.wisc.edu/" target="_blank">Neuroscience Society</a></li>
                    <li><a href="../undergrad/sciencejobs.html">Jobs in Science</a></li>
                    <li><a href="../admissions/admission.html">Application</a></li>
                  </ul>
              </li>
          </ul>
        </td>
        <td  width="100px"> </td>
        <td> </td>
        <td> </td>
      </tr>
      <tr>
        <td> </td>
        <td> </td>
        <td colspan="7" class="topbox"></td>
        <td> </td>
        <td> </td>
      </tr>
      <tr>
        <td> </td>
        <td> </td>
        <td colspan="7" class="middlebox"><div class="content"><!-- TemplateBeginEditable name="content" class="content"-->
          <p>Content stuff goes here!</p>
          <!-- TemplateEndEditable --></div></td>
        <td> </td>
        <td> </td>
      </tr>
      <tr>
        <td> </td>
        <td> </td>
        <td colspan="7" class="bottombox"> </td>
        <td> </td>
        <td> </td>
      </tr>
      <tr>
        <td> </td>
        <td> </td>
        <td width="700px" colspan="7">
             <div width="700px" colspan="2" align="center">
                <form action="http://ntp.neuroscience.wisc.edu/search.html" id="cse-search-box">
                  <div>
                       <b>Search NTP: </b>
                    <input type="hidden" name="cx" value="011160202589940358049:xyauj-lfpd0" />
                    <input type="hidden" name="cof" value="FORID:11" />
                    <input type="hidden" name="ie" value="UTF-8" />
                    <input type="text" name="q" size="31" />
                    <input type="submit" name="sa" value="Search" />
                  </div>
                </form>
                <script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en"></script>
                <p><a href="http://npp.neuroscience.wisc.edu">Neuroscience & Public Policy Dual-Degree Program</a>
                 <p align="center"><font size="2">7225 Medical Sciences Center<br>
                      1300 University Avenue<br></font>
                      <font size="2">Madison, WI 53706-1532<br><br></font>
                    <font size="2">Tel: (608) 262-4932 </font></p>
                <p align="center">
                       <a href="http://www.wisc.edu">UW Home</a>   
                       <a href="http://www.wisc.edu/grad/">Graduate School</a>   
                    <a href="../sitemap.htm">Site Map</a></p>
                <hr align="center" width="50%">
                <p align="center">Copyright &copy; 2003 The Board of Regents of the University
                      of Wisconsin System<br>
                      Page Created
                        <!-- TemplateBeginEditable name="Created" -->February 7, 2008<!-- TemplateEndEditable -->
                      | Last Updated
                      <!-- #BeginDate format:Am1 -->January 28, 2010<!-- #EndDate --><br>
                      Question or Comments, Please Contact <a href="../contact.html">Jenny</a> or <a href="../contact.html">Jessica</a> at <a href="mailto:[email protected]">
                    [email protected]</a><br>
                </p></div>    </td>
        <td> </td>
        <td> </td>
      </tr>
    </table>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar2 = new Spry.Widget.MenuBar("MenuBar2", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar3 = new Spry.Widget.MenuBar("MenuBar3", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar4 = new Spry.Widget.MenuBar("MenuBar4", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar5 = new Spry.Widget.MenuBar("MenuBar5", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    var MenuBar6 = new Spry.Widget.MenuBar("MenuBar6", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </body>
    </html>
    sorry for the messy code, i inherited this site from the previous employee and havent had a chance to optimize. even though I just joined the forums, thanks for your help!

    You only need to post a URL to your web site. We can see your code in Browser.
    So, your page looks OK to me in Firefox, but when I tried to check it in IE, it choked my browser and closed it.
    You have quite a few code validation errors - no document type declaration, etc... Start by fixing these reported errors.
    http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fntp.neuroscience.wisc.edu%2F
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • How can I add .PNG images to templates without getting a white background?

    I'm having problems with a image field when I add a .png image which doesnt have a background it is showing up with a white background. Is it possible to use images in templates so you can overlay them on something else?

    Hi, You can do this but only with a PNG with a palette of 256 colors (maybe GIF as well) so doesn't get a lot of use, good enough for image buttons and the like, but might be ok for your image as it does not have that many colors. Otherwise radzmar's suggestion would be the better approach.
    This is the link I was tring to find (in your previous thread) that tells how to do it using GIMP (a free image editor), http://smartforms.business.gov.au/DeveloperResources/Pages/HintsandTips.aspx ,  but the one I have uploaded here comes from photoshop (in photoshop it is called an indexed png).
    Regards
    Bruce
    p.s. I'm always on the lookout for a new beer to try if this one you would recommend? 3% and all.

  • How to add metadata to multiple images via Template

    Hi
    Wonder if anyone can tell me if it is possible to add Metadata to multiple images using a metadata template.  I see that I can add to multiple using Organizer but with that you have to type in the metadata.  In Elements 11 I can do it using a template but only for 1 image at a time.
    Is there a way to do this in Elements 11 or Organizer?
    Thanks in Advance.

    In the File properties dialog of the editor you can enter your values in the metadata tabs, then use the 'Import' button on the bottom of the dialog, switch to 'Export' and that exports your values as a template.
    As far as I know, this is to be used in the advanced dialog of the downloader : you can use your templates at import time for a batch of images.
    Otherwise, when you have selected many images in the organizer, you can click on the 'Add IPTC data' button in the tags panel on the right side : you have to enter the data which will be applied to all the selected files.

  • How to get muliple teaser images using assetset:getmultiplevalues?

    1. I have created a template called sample and Names it as sample.jsp
    2. In the subTypes i selected a pageDefinition which i created alrady with the following page attributes
         1.teaserImager 2.teaserText
         Both attributes are Multiple
    3. I then created a asset HomePage of asset type Page.
    4. For that HomePage i applied a template sample which i created in Step 1.
    5.I added 4 teaser images and teser texts in the contributor interface
    6. In eclipse i am trying to modify sample.jsp to fetch the teaser images using assetset:getmultiplevalues. But no success?
    Could anybody tell me how to fetch the teaser images using getmultplevalues?
    Below is the code which is not working, just for ref.
    <render:logdep cid='<%=ics.GetVar("tid")%>' c="Template" />
    <assetset:setasset name="home" type="Page" id='<%=ics.GetVar("cid")%>' />
    <assetset:getattributevalues name="home" attribute="teaserImages" listvarname="teasersImg" typename="PageAttribute" />
    *<assetset:getmultiplevalues name="home" list="teasersImg" prefix="sample" />*
    *<ics:listloop listname="sample:value">*
                   *<insite:calltemplate tname="Detail" c="AVIImage"*
                        cid='<%=ics.GetVar("imageId")%>' assettype="Page"
                        assetid='<%=ics.GetVar("cid")%>' field="teasersImg" index="1" />
              *</ics:listloop>*
    Above code gives me the exception saying
    Exception in doEndTag() in tag com.openmarket.gator.jsp.assetset.Getmultiplevalues in page 'avisports/Page/InsiteLayout' in element 'Page/InsiteLayout' errno: -13102 errdetail: 0
    com.openmarket.basic.interfaces.AssetException: Can't find attribute type: 1330543072207
    thanks
    Sri
    Edited by: 987672 on Feb 12, 2013 12:15 PM

    Hi Nick, I do see information on creating a slideshow with Quicktime at: http://www.apple.com/quicktime/tutorials/slideshow.html
    however it appears Quicktime X removed that capability. There is no 'open image sequence' option from the File menu in Quicktime X.
    If I do end up sticking with Final Cut - would you recommend any codec and/or dimension size that would result in the best quality or the most crisp image? I also need a few fade in's and out's on various parts - I don't believe I would have the control without Final Cut.
    Would resizing the image files in Photoshop to 1920 pixels by 1280 before importing them into Final Cut result in crisper images? Thanks.

  • FAQ: When I apply edits to an image using Revel, does it save a new file or just the edits?

    Q. When I apply edits to an image using Revel, does it save a new file or just the edits?
    A. Revel cloud keeps a copy of your full resolution originals. Edits in  revel are non-destructive, so your original is always preserved (unedited). When you export photo (MAC) Save to Camera Roll (iOS), that's when Revel applies your edits. On iOS the preview is used. on MAC the full resolution of the original is used to generate the new edited photo.

    Thanks kumars ,
    I have a specific drag and drop area on our website. This works fine for all earlier releases of Firefox after these security settings
    "(1) Enter "about:config" in the URL field; (2) Right click and select New->Boolean; (3) Enter "signed.applets.codebase_principal_support" (without the quotes) as a new preference name; (4) Click OK and try loading the file again."
    Bust these settings not work for me in Firefox 17.
    Yes the drag and drop functionality is java script based and i am not using any script blocker addons.

  • Send both Toast and Tile Notification simultaneously using Template feature of Notification Hub

    Hi, I am using WNS(Windows Notification Service) With Notification Hub to send Push Notifications to my WP 8.1 Application. I am basically sending localized notification using Template feature of Notification Hub. I have used Localized
    News example  reference for sending localized used.
    Here are my templates and how I am registering them, also How my Dictionary payloads look like :-
    Toast Template Method :- 
    public static string GetToastText01Template(string param,string line1)
    return string.Format(@"<toast launch=""$({0})"">
    <visual>
    <binding template=""ToastText01"">
    <text id=""1"">$({1})</text>
    </binding>
    </visual>
    </toast>", param, line1);
    Tile Template Method :-
    public static string CreateSquare150_150BackgroundTextTemplateWns(string backText)
    return string.Format(@"<tile>
    <visual >
    <binding template=""TileSquarePeekImageAndText01"">
    <image id=""1"" src=""ms-appx:///ApplicationIcon_173_173.png"" alt=""alt text"" />
    <text id=""1"">$({0})</text>
    </binding>
    </visual>
    </tile>", backText);
    Registration With Notificaiton Hub (Part of Register Method basically) :-
    var toasttemplate = GetToastText01Template("NavigateToPageUri" ,GetToastCultureKey(culture));
    await _hubClient.CreateWindowsTemplateRegistrationAsync(ChannelUri, toasttemplate, tags);
    var tileTemplate = ToastFactory.CreateSquare150_150BackgroundTextTemplateWns(GetTileBackTextCultureKey(culture));
    await _hubClient.CreateWindowsTemplateRegistrationAsync(ChannelUri, tileTemplate, tags)
    Toast payload In terms of Dictionary :- 
    Tile Payload Dictionary :-
    Note :- I have ensured that Keys for both the templates must be different during registering the templates so that both templates doesn't mix with each other. 
    Problem :- When I am registering only one Template, doesn't matter Whether it is Toast or Tile, I am able to get the notification on my app successfully(Both of Toast and Tile ,individually, working fine). But When I register both of the
    Templates simultaneously or Individually, then none on them is working.
    Questions :- 
    1) Can you let me know how basically Notification Hub select the Template from Payload Dictionary ? Like in case of two different registered templates.
    2) How can we send Two localized Notifications simultaneously using Template feature of Notification Hub?

    Hi Tanuj,
    Selection of template/registration always based on tags not based on payload keys.
    Just to explain, you have following two devices.
    device A - toast template,  tags: {"en-us", "toast"}
    device A - tile template , tags : {"en-us", "tile"}
    device B - toast template,  tags: {"en-fr", "toast"}
    device B - tile template , tags : {"en-fr", "tile"}
    If you call a method  SendTemplateNotificationAsync({“properties of template”}, “en-us”)) like this,  That will target the toast and tile both notifications to the device A.
    But if you just want to send the toast notification to device A, you have to call something like this,
    SendTemplateNotificationAsync({“properties of template”}, “en-us && toast”)). FYI Second parameter is a tag expression: Please refer following link to know more about tag expressions:
    https://msdn.microsoft.com/en-us/library/azure/dn530749.aspx
    To answer your second question, register template with language tag along with other tags (just like above example). Then when you are sending notification, include that tag in your tag expression.
    Example: SendTemplateNotificationAsync({“properties of template”}, “en-us && toast”)), this one send toast notifications to all “en-us” local devices.
    Thanks,
    Sateesh
    Mark Post as helpful if it provides any help.Otherwise,leave it as it is.

  • I am trying to softproof an image using a CMYK .icc file. I sent an image from LR 5 to PS CC 2014, opened the Camera Raw FIlter, but the hyperlink to access workflow is not showing up in the CR dialogue box... Any ideas why this might be?

    I am trying to softproof an image using a CMYK .icc file. I sent an image from LR 5 to PS CC 2014, opened the Camera Raw FIlter, but the hyperlink to access workflow is not showing up in the CR dialogue box... Any ideas why this might be?

    I am trying to softproof an image using a CMYK .icc file. I sent an image from LR 5 to PS CC 2014, opened the Camera Raw FIlter, but the hyperlink to access workflow is not showing up in the CR dialogue box... Any ideas why this might be?

  • Capture an image using the web camera from a web application

    Hi All,
    Could anyone please share the steps what have to be followed for capture an image using the web camera from a web application.
    I have a similar requirement like this,
    1) Detect the Webcam on the users machine from the web application.(To be more clear when the user clicks on 'Add Photo' tool from the web application)
    2) When the user confirms to save, save the Image in users machine at some temporary location with some unique file name.
    3) Upload the Image to the server from the temporary location.
    Please share the details like, what can be used and how it can be used etc...
    Thanks,
    Suman

    1) Detect the Webcam on the users machine from the web application.(To be more clear when the user clicks on 'Add Photo' tool from the web application)There's not really any good way to do this with JMF. You'd have to somehow create a JMF web-start application that will install the native JMF binaries, and then kick off the capture device scanning code from the application, and then scan through the list of devices found to get the MediaLocator of the web cam.
    2) When the user confirms to save, save the Image in users machine at some temporary location with some unique file name.You'd probably be displaying a "preview" window and then you'd just want to capture the image. There are a handful of ways you could capture the image, but it really depends on your situation.
    3) Upload the Image to the server from the temporary location.You can find out how to do this on google.
    All things told, this application is probably more suited to be a FMJ (Freedom for Media in Java) application than a JMF application. JMF relies on native code to capture from the web cams, whereas FMJ does not.
    Alternately, you might want to look into Adobe Flex for this particular application.

  • Downloading images used to go automatically to the last folder used to save images, even when reopening Firefox. In just the past few days, possibly coinciding wih the most recent updates, the folder defaults to the 'Downloads' folder. This is most annoyi

    Downloading images used to go automatically to the last folder used to save images, even when reopening Firefox. In just the past few days, possibly coinciding wih the most recent updates, the folder defaults to the 'Downloads' folder. This is most annoying. What happened? Internet Explorer 8.0 did the same thing. This was one of the reasons why I started using Firefox to download all images. I went into Tools>Options and it only lets me set another folder. I dont want to set a specific folder I want it to always go to the last folder used. So what gives?
    == This happened ==
    Every time Firefox opened
    == possibly when the most recent updates were installed, a few days ago

    Thanks jscher 2000. I guess I didn't make it clear. "It restarts with all the addons activated, and resumes with the tabs that were open before closing it." IE, it's running fine now with all the extensions activated. Everything is OK now.
    So something in the Firefox code was causing the bad behavior. It's not essential that I find out what the problem was - I'm just curious. And if anybody else has this same problem, it might be nice to have it corrected at the source.

  • Create a new Buffered Image using Raster and ColorModel

    Sorry , I crosspost this message,because no one reply.
    Recently,I write a programme combining C++ and Java .
    The C++ part create a array containing image data in form of BI_RGB and biBitCount==32.
    The java part create a image using Raster and ColorModel like this:
       static int[] data ;
       DataBuffer db = new DataBufferInt(data, data.length);
       WritableRaster wr =Raster.createPackedRaster(db, 1024,768, 32, null);
       ColorModel cm = new DirectColorModel(32,0xff0000,0x00ff00,0x0000ff);
       img = new BufferedImage(cm, wr, false, null);But it doesn't work .
    it report this:
    Exception in thread "main" java.lang.IllegalArgumentException: Raster sun.awt.im
    age.SunWritableRaster@dff3a2 is incompatible with ColorModel DirectColorModel: r
    mask=ff0000 gmask=ff00 bmask=ff amask=0
    at java.awt.image.BufferedImage.<init>(BufferedImage.java:549)
    at monitor.test.Perform2.main(Perform2.java:39)

    hey epico
    compiles & runs 4 me
    see javadocs for SinglePixelPackedSampleModel
    import java.awt.image.*;
    public class Tester {
    DataBuffer db;
    WritableRaster wr;
    ColorModel cm;
    BufferedImage im;
    int[] data;
    int[] masks;
    int w = 768;
    int h = 576;
      public Tester() {
        data = new int[768*576];
        for (int i = 0;i < w*h ;i++ ) {
          data[i] = 0;
        masks = new int[3];
        masks[0] = 0xff0000;
        masks[1] = 0x00ff00;
        masks[2] = 0x0000ff;
        db = new DataBufferInt(data,data.length);
        SinglePixelPackedSampleModel sm = new SinglePixelPackedSampleModel(DataBuffer.TYPE_INT,w,h,masks);
        cm = new DirectColorModel(32,0xff0000,0x00ff00,0x0000ff);
        wr = Raster.createWritableRaster(sm,db,null);
        im = new BufferedImage(cm,wr,false,null);
      public static void main(String[] args) {
        Tester tester1 = new Tester();
    }

  • Help displaying an image using the canvas!!!!!!!!

    Hey guys
    I don't know whether I am not grasping some concepts well.I have been going mad trying to get the code working
    Here is the code
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import java.io.*;
    * @author Administrator
    * @version
    public class MyMIDlet extends javax.microedition.midlet.MIDlet implements CommandListener{
    private Display display;
    private MyCanvas canvas;
    private Command exitcommand = new Command("Exit",Command.SCREEN,1);
    private Image source;
    public MyMIDlet() {
    protected void startApp() throws MIDletStateChangeException{
    if (display == null){
    initMIDlet();
    protected void pauseApp() {
    protected void destroyApp(boolean unconditional)throws MIDletStateChangeException {
    exitMIDlet();
    public void commandAction(Command c, Displayable d) {
    if (c == exitcommand){
    exitMIDlet();
    protected void initMIDlet() {
    display = Display.getDisplay(this);
    canvas = new MyCanvas(this);
    System.err.println("Canvas instiated succesfully");
    canvas.addCommand(exitcommand);
    canvas.setCommandListener(this);
    display.setCurrent(canvas);
    public void exitMIDlet() {
    notifyDestroyed();
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    import java.io.*;
    public class MyCanvas extends Canvas implements Runnable {
    private MIDlet midlet;
    private Image offscreen;
    private Image currentimage;
    private Graphics g;
    //MID profile application
    /** Creates a new instance of MyCanvas */
    public MyCanvas(MIDlet midlet) {
    this.midlet = midlet;
    try{
    currentimage = Image.createImage("/bird0.png");
    }catch(IOException e){
    System.err.println(e.getMessage());
    if (currentimage!= null){
    System.err.println("Image create successfully");
    }else{
    System.err.println("Image not created");
    try{
    Thread t = new Thread(this);
    t.start();
    }catch(Execption e){}
    protected void paint(Graphics g){
    Graphics saved = g;
    int x = getWidth();
    int y = getHeight();
    g.setColor(255,255,255);
    g.drawImage(currentimage,x,y,g.TOP|g.VCENTER);
    public void run() {
    repaint();
    I know for a fact that the Canvas class 's paint method is called by the system and not the application. This poses a problem for me because I am not sure how to pass the image to the piant method, so that it can be painted.
    When I run the program(using J2ME wtk04), this is the outcome.
    Image created succesfully
    Canvas instiatiated successfully
    null
    Here are my questions
    1) when is the paint method precisely called by the system?after a reference to the canvas class is created?
    2) is it wise to create the image when instiating the canvas class?( initially created the image using a separate thread)-when sould the image be created?
    3)how to let the application know when to use the image when painting the display area?
    I am just trying the logistics here. It is very crucial to me to understand the bolts of this as the core f my project fouses on the man machine interface development.(For the project, the cilent application is quering for the map using HTTP)
    I use a png file of size 161 bytes. Is that too big for testing purposes.
    I would all the help that I can get. thanks in advance

    1) when is the paint method precisely called by the system?after a reference to the canvas class is created?
    After the canvas is set as the current display, and after that, after the repaint() is called.
    2) is it wise to create the image when instiating the canvas class?( initially created the image using a separate thread)-when sould the image be created?
    It's better to create the image in the very begining of the program e.g. in the midlet initialization. You can call the created image as often as you like later on
    3)how to let the application know when to use the image when painting the display area?
    you have to tell it :))
    you can use if-then, switch, or anything else
    and you can use clipping too

  • Hello, I am trying to use a photo,that I've opened up in pages on a blank landscape, taken from my camera roll and use it as album cover art. All the custom text's will not paste when I copy.  Pic and texts are saved as a PDF, how can I paste the doc ?

    Hello, I am trying to use a photo,that I've opened up in pages on a blank landscape, taken from my camera roll and use it as album cover art. All the custom text's will not paste when I copy.  Pic and texts are saved as a PDF, how can I paste the doc ?

    Hello, I am trying to use a photo,that I've opened up in pages on a blank landscape, taken from my camera roll and use it as album cover art. All the custom text's will not paste when I copy.  Pic and texts are saved as a PDF, how can I paste the doc ?

Maybe you are looking for

  • How to map keys(Key board) in forms6i

    Hi all, Would like to check ,is there anyway like with previous version of forms4.5,we can map our keys(keyboard keys vt220 e.g commit=F10,execute_query=F8 and so on). We were using forms4.5(character mode) with Unix platform but now we decided to go

  • Financial accounting comparative analysis Transaction F.03 "inconsistence"

    Dear all, we just checked out over transaction F.03 that we have inconsistencies between accounts receivables on the basis of customer line item (transaction FBL5N), G/L account line item (transaction FBL3N) and report S_ALR_87012284 which shows the

  • Java Applet Not Loading In IE6 on XP

    Can anyone assist I have a user who can not load a Java Applet on one of our web pages, I really need her to access this as it is important to her work. I have tried all the latest Java Versions to no avail. I have also tried adding SP1a to Windows X

  • How can I buy the whosehere gifts

    there is a gifts in whoseher I can't buy it, it show me this message " Please contact iTunes support to copmlete this transaction " when I'm trying to buy the gifts So, could you help me to get red of this problem my account recharged with iTunes car

  • Interface to transfer the data into payroll

    hi folks, I need to transfer the time data entry found in CATSDB intp payroll. what is the interface or BAPI FM that I can use? Also , I need a clarification - is the data stored in CATSDB table - the final time data of the employees ? Thanks Vinu