Trouble with HTML

Hello,
I want to write a guestbook - applet for my website.
The applet contains a JTextPane and supports formatted
text like italic, bold etc.
So, when the user clicks some button, I want to update
a special html-file called guestlog.
Here I want to insert the formatted text from the Textpane
directly after the BODY-Tag.
My problem is that I didn't find out how to do that!
Is it possible to convert the Text from the textpane to HTML
and keep its format?
Codesamples are welcome!
Thanks in advance,
Markus

Ok, here is what I already have (it's not very much!)
Important is method update().
My problem is that I just don't know how to insert code
after the Body-tag.
The code below creates a new BODY tag at the wrong place
(inside of <Head>).
I also tried to iterate through the document and retrieve
the Position of <Body> what also didn't work.
(Element.getStartOffset() returnd a value of 3 what I can't
apply to the HTML-file)
import javax.swing.text.html.*;
import javax.swing.text.*;
import java.net.*;
import java.io.*;
import javax.swing.JTextPane;
import javax.swing.text.html.parser.*;
public class HTMLUpdator {
//Document with new text from JTextPane
HTMLDocument textDoc;
//Document with existing Text from "guestlog.htm"
HTMLDocument doc;
JTextPane textpane;
URL base;
HTMLEditorKit kit;
public HTMLUpdator(URL base) {
//Place of "guestlog.htm"
this.base = base;
public void update(){
try{
//Construct a reader to load "guestlog.htm"
Reader rd = getReader(base.toString());
//Read guestlog.htm into doc;
kit.read(rd, doc,0);
System.out.println("Content of guestlog.htm: " + doc.getText(0,doc.getLength()));
System.out.println("Content of JTextPane: "+ textDoc.getText(0,textDoc.getLength()));
//Insert new text from JTextPane into doc
kit.insertHTML(doc,doc.getStartPosition().getOffset(),
"<p>" + textDoc.getText(0,textDoc.getLength()) + "</p>", 0,0,HTML.Tag.BODY);
//Write doc back to disk as "guestlog.htm"
File f = new File("guestlog.htm");
     try {
          FileOutputStream fstrm = new FileOutputStream(f);
kit.write(fstrm,doc,0,doc.getLength());
     } catch (IOException io) {System.out.println(io.toString());};
} catch (Exception e) {
e.printStackTrace();
public void setJTextPane(JTextPane in){
this.textpane = in;
this.textDoc = (HTMLDocument)in.getDocument();
this.kit = new HTMLEditorKit();
this.doc = (HTMLDocument)kit.createDefaultDocument();
static Reader getReader(String uri) throws IOException {
if (uri.startsWith("http:")|| uri.startsWith("file:")) {
// Retrieve from Internet.
     URLConnection conn = new URL(uri).openConnection();
return new InputStreamReader(conn.getInputStream());
} else {
// Retrieve from file.
     return new FileReader(uri);
The Created HTML-Code looks like follows
(look at the wrong body tag inside head):
<html>
<head>
<body>
<p>
"Text from JTextPane"
</p>
</body>
<title>G�stebuch </title>
</head>
<body bgcolor="#000000" text="#FFFFCC" link="#FF9900" alink="#669933" background="_themes/artsy/arttilea.jpg" vlink="#999900">
</body>
</html>
Help is very appreciated!
Greetings,
Markus

Similar Messages

  • Having trouble with html snippets and movies in iweb 09

    Hi I have built a site iweb2.0.4 and recently moved it onto my new machine with iweb 09 on. Basically I have been putting in videos that I have exported for web out of Quicktime. In the past I have simply added an html snippet code like this in <iframe src="http://evileducation.org/stammuraifinalcomp/ReadMe.html" style="width: 340px; height: 285px"; scrolling="no" controller="true" frameborder="0"></iframe>
    I edit the ReadMe.html based on a tutorial I saw and it loads the movie after pressing the "Click to play" button. Now in 09 when I put the code in to the snippet it just shows a Quicktime symbol with a question mark. if you check the link below you can see the videos with the best I have managed to do so far which is get the new movies on but they both autoplay (I have linked in this instance to the 4kb .mov in each folder rather than the readme.html.). I don't want to just drag a video in I would like the options to view on phone or on computer etc and not for them to autoplay. Is there a new/ different way to do this now. Surely it shouldn't be this hard to get the export for web in Quicktime and iWeb to work together? The frustrating thing is if you check the link below the old movies work fine still it's just the 2 new ones. Soz for the long one!
    http://evileducation.org/eviltwin_education_2010/movies_made_by_youngpeople.html

    Less cryptic :
    MAKE THE TWO MOVIES THE SAME AS THE OTHER EIGHT.
    Here are some pages for your convenience you can study and nim :
    http://www.wyodor.net/iFrame/
    http://www.wyodor.net/MoreEmbed/
    [Using the iWeb HTML Snippet|http://www.wyodor.net/blog/archives/2009/07/entry_213.html]
    http://www.apple.com/quicktime/pro/tutorials.html
    You may have to learn HTML/CSS/JavaScript.
    for the young people with disabilities that made
    Keep the emotions out of the equation.

  • Trouble with html  and Foreca meteo maps

    hey,...
    here is the situation ,...
    i try to display this type of address with "<mx:HTML >"
    http://srv.foreca.com/foreca_com/loader20.swf?lang=FR&mode=world&continent=Europe 
    i have remplaced the "&" by "&#0038;"
    but with no result
    it is possible to display this type  of address,...??
    i supposed "yes "
    but can you tell me how please,...
    thanks in advance,...

    i have remplaced the different special charactere...
    and i have no more error in the debug,...
    but the html page  dont display  the map
    only a "error " message
    "No Content Available"
    My question is
    is it possible to display a foreca weather map ????

  • PSE9 - having trouble with "html email sender verification" page

    We have just purchased the PSE9. This is our first venture into a photoshop program. We are wanting to send some of our pictures to friends via email. Just after we push the "share" button, to create an attachment for the email, we get this page "html email sender verification." It contains in the first blank, our email address (given), a button "resend email", and a blank entitled " Sender verification."  Below this box are the words:
    "If this email address is not correct, or you would like to use a different e mail client, you can change your email settings by clicking Cancel and then choosing
    Edit ->Preferences->sharing."
    At the bottom right are two buttons, "OK" and "Cancel"
    When we put in our email address into the "Sender verification" box,  and press "OK" the next window is entitled "HTML Email Sender Verification" .  The only words on the page for us are  in red and they say:
    "Your email could not be sent because an unkown error has occurred. Please try again."
    Then we have the option of pushing the "OK" or "Cancel" button.
    Can anyone help us get beyond this obstacle?
    THANKS!!

    You need to enter the email id in preferences. Once you put it, you will receive a verification code. You need to put this verificaiton code in the sender verification window. This is required if you are using Adobe email service. You can change the email provider from sharing preferences.

  • Trouble with html on copyright page

    I was wondering if anyone had the time to take a look at the source code on my copyright page. I have been using this page for years, and adjusting it when the need arises. I recently made some changes and, when I generate the project in RH6, I get an error message saying a Runtime Error has occurred.
    I've played with the code all day today, to no avail. Perhaps I should call support? I'm not sure how to proceed. . .
    Regards,
    Sharon

    I'm going to answer this to the best of my abilities.
    First of all, I did import the source file, not the output file, into another project, though I repeated that exercise again to be sure that is what I had in fact done. With that clarified, I proceeded to take out the text as recommended by Willam. I did begin to realize that all my source files have this code.
    After generating, I viewed the output files in both Firefox and IE6. In Firefox, I had no problems; In IE, the error remained. I decided to debug in IE, and (not being a programmer), I can only surmise that my results were that something was wrong with IE! I upgraded to IE8, and all went swimmingly from then on.
    If someone can explain this more clearly, that would be terrific. . .in the meantime, thank you all for your help, as always.
    Have a wonderful weekend.
    Regards,
    Sharon

  • Trouble with HTML snippet

    An HTML snippet does not work once published to a website although it does work in the "view published site" option. Error message "Not Found URL requested". I use iWeb for my website and Firezilla to publish to www. Any solutions please?

    This could be caused by the file in question not being uploaded to the server or an error in the URL.
    You need to use your FTP app to have a look at the files on the server to see if the appropriate one is actually there and in the correct place.

  • I'm having trouble with something that redirects Google search results when I use Firefox on my PC. It's called the 'going on earth' virus. Do you have a fix that could rectify the vulnerability in your software?

    I'm having trouble with a virus or something which affects Google search results when I use Firefox on my PC ...
    When I search a topic gives me pages of links as normal, but when I click on a link, the page is hijacked to a site called 'www.goingonearth.com' ...
    I've done a separate search and found that other users are affected, but there doesn't seem to be a clear-cut solution ... (Norton, McAfee and Kaspersky don't seem to be able to detect/fix it).
    I'd like to continue using the Firefox/Google combination (nb: the hijack virus also affects IE but not Safari) - do you have a patch/fix that could rectify the vulnerability in your software?
    thanks

    ''' "... vulnerability in your software?" ''' <br />
    And it affects IE, too? Ya probably picked up some malware and you blame it on Firefox.
    Install, update, and run these programs in this order. They are listed in order of efficacy.<br />'''''(Not all programs detect the same Malware, so you may need to run them all to solve your problem.)''''' <br />These programs are all free for personal use, but some have limited functionality in the "free mode" - but those are features you really don't need to find and remove the problem that you have.<br />
    ''Note: If your Malware infection is bad enough and you are mis-directed to URL's other than what is posted, you may have to use a different PC to download these programs and use a USB stick to transfer them to the afflicted PC.''
    Malwarebytes' Anti-Malware - [http://www.malwarebytes.org/mbam.php] <br />
    SuperAntispyware - [http://www.superantispyware.com/] <br />
    AdAware - [http://www.lavasoftusa.com/software/adaware/] <br />
    Spybot Search & Destroy - [http://www.safer-networking.org/en/index.html] <br />
    Windows Defender: Home Page - [http://www.microsoft.com/windows/products/winfamily/defender/default.mspx]<br />
    Also, if you have a search engine re-direct problem, see this:<br />
    http://deletemalware.blogspot.com/2010/02/remove-google-redirect-virus.html
    If these don't find it or can't clear it, post in one of these forums for specialized malware removal help: <br />
    [http://www.spywarewarrior.com/index.php] <br />
    [http://forum.aumha.org/] <br />
    [http://www.spywareinfoforum.com/] <br />
    [http://bleepingcomputer.com]

  • Trouble with "body" images lining up at the top

    Hi, I am having troubles with the #body style in my web page. I have inserted a table into the #body area and the the body editable region will not line up on the top with the sideBar editable region when I add text and apply my css to it. Can you look at the code and let me know what I am doing wrong? Thanks!
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Ram Restaurant &amp; Brewery</title>
    <!-- TemplateEndEditable -->
    <meta name="keywords" content="Ram Restaurant, The Ram restaurant, Ram Restaurant and brewpub, Ram Restaurant Group, Ram International" />
    <meta name="description" content="Welcome to The Ram!  Your stomach wants food.  Your tastebuds want beer.  Satisfy them both at the Ram Restaurant & Brewery." />
    <style type="text/css">
    <!--
    body {
    background-color: #333;
    margin: 0 auto;
    padding: 0px;
    margin-left: 0px;
    margin-right: 0px;
    .navbar_center {
    text-align: center;
    -->
    </style>
    <link href="/RamWebsite_NEW/cssstyles.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    body,td,th {
    font-family: Arial, Helvetica, sans-serif;
    color: #F00;
    margin: 0px;
    padding: 0px;
    a:link {
    color: #666;
    text-decoration: none;
    h1 {
    font-size: 36px;
    color: #000;
    h2 {
    font-size: 24px;
    color: #000;
    h3 {
    font-size: 18px;
    color: #000;
    h4 {
    font-size: 12px;
    color: #000;
    a:visited {
    text-decoration: none;
    color: #000;
    a:hover {
    text-decoration: underline;
    a:active {
    text-decoration: none;
    -->
    </style>
    <!--[if lte IE 8]>
    <style type="text/css">
    ul.MenuBarHorizontalul  li ul li ul li.MenuBarHorizontal, ul.MenuBarHorizontal li ul li.MenuBarHorizontal {
    width:100px;
    height:23px;
    </style>
    <![endif]-->
    <script src="/RamWebsite_NEW/SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <script type="text/javascript">
    <!--
    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    //-->
    </script>
    <link href="/RamWebsite_NEW/SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    </head>
    <body link="#000000" topmargin="0" onload="MM_preloadImages('/RamWebsite_NEW/images/Menu_rollover.jpg','/RamWebsite_NEW/imag es/EventsLink2_rollover.jpg','/RamWebsite_NEW/images/GiftCards_rollover.jpg','/RamWebsite_ NEW/images/BeerLink2_rollover.jpg')">
    <div id="wrapper">
    <div id="header">
        <table width="900" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <th width="200" height="36" rowspan="2" align="center" valign="middle" scope="col"><a href="http://www.theram.com"><img src="/RamWebsite_NEW/images/Ram-Logo-red.gif" alt="Ram Restaurant &amp; Brewery Logo" width="175" height="69" border="0" /></a></th>
            <th width="350" height="50" align="center" valign="middle" scope="col"> </th>
            <th width="200" align="center" valign="middle" scope="col"> </th>
            <th width="150" align="right" valign="middle" scope="col"><a href="http://www.facebook.com/home.php?#!/theramrestaurant?ref=ts"><img src="/RamWebsite_NEW/images/FacebookBox.gif" alt="Becoma a Facebook Fan!" width="40" height="40" border="0" /></a><a href="http://www.twitter.com/theram"><img src="/RamWebsite_NEW/images/TwitterBox.gif" alt="Follow Us on Twitter" width="40" height="40" hspace="30" border="0" /></a></th>
          </tr>
          <tr>
            <th colspan="3" align="right" scope="col"><ul id="MenuBar1" class="MenuBarHorizontal">
              <li><a class="MenuBarItemSubmenu" href="#">MENU</a>
                <ul>
                  <li><a href="#" class="MenuBarItemSubmenu">Idaho</a>
                    <ul>
                      <li><a href="/menus/idaho/boise.shtml">Boise</a></li>
                      <li><a href="/menus/idaho/meridian.shtml">Meridian</a></li>
                    </ul>
                  </li>
                  <li><a href="#" class="MenuBarItemSubmenu">Illinois</a>
                    <ul>
                      <li><a href="/menus/illinois/rosemont.shtml">Rosemont</a></li>
                      <li><a href="/menus/illinois/schaumburg.shtml">Schaumburg</a></li>
                      <li><a href="/menus/illinois/wheeling.shtml">Wheeling</a></li>
                    </ul>
                  </li>
                  <li><a href="#" class="MenuBarItemSubmenu">Indiana</a>
                    <ul>
                      <li><a href="/menus/indiana/fishers.shtml">Fishers</a></li>
                      <li><a href="/menus/indiana/indianapolis.shtml">Indianapolis</a></li>
    </ul>
                  </li>
                  <li><a href="#" class="MenuBarItemSubmenu">Oregon</a>
                    <ul>
                      <li><a href="/menus/oregon/clackamas.shtml">Clackamas</a></li>
                      <li><a href="/menus/oregon/salem.shtml">Salem</a></li>
                    </ul>
                  </li>
                  <li><a href="#" class="MenuBarItemSubmenu">Washington</a>
                    <ul>
                      <li><a href="/menus/washington/kent.shtml">Kent</a></li>
                      <li><a href="/menus/washington/lacey.shtml">Lacey</a></li>
                      <li><a href="/menus/washington/lakewood.shtml">Lakewood</a></li>
                      <li><a href="/menus/washington/puyallup.shtml">Puyallup South Hill Mall</a></li>
                      <li><a href="/menus/washington/puyallup2.shtml">Puyallup Sunrise Village</a></li>
                      <li><a href="/menus/washington/northgate.shtml">Seattle Northgate</a></li>
                      <li><a href="/menus/washington/seattle.shtml">Seattle University Village</a></li>
                      <li><a href="/menus/washington/tacoma.shtml">Tacoma</a></li>
                    </ul>
                  </li>
                </ul>
              </li>
              <li><a href="#" class="MenuBarItemSubmenu">LOCATIONS</a>
                <ul>
                  <li><a href="#" class="MenuBarItemSubmenu">Idaho</a>
                    <ul>
                      <li><a href="/idaho/boiseNew.html">Boise</a></li>
                      <li><a href="/idaho/meridianNew.html">Meridian</a></li>
                    </ul>
                  </li>
                  <li><a href="#" class="MenuBarItemSubmenu">Illinois</a>
                    <ul>
                      <li><a href="/illinois/rosemontNew.html">Rosemont</a></li>
                      <li><a href="/illinois/schaumburgNew.html">Schaumburg</a></li>
                      <li><a href="/illinois/wheelingNew.html">Wheeling</a></li>
                    </ul>
                  </li>
                  <li><a href="#" class="MenuBarItemSubmenu">Indiana</a>
                    <ul>
                      <li><a href="/indiana/fishersNew.html">Fishers</a></li>
                      <li><a href="/indiana/indianapolisNew.html">Indianapolis</a></li>
                    </ul>
                  </li>
                  <li><a href="#" class="MenuBarItemSubmenu">Oregon</a>
                    <ul>
                      <li><a href="/oregon/clackamasNew.html">Clackamas</a></li>
                      <li><a href="/oregon/salemNew.html">Salem</a></li>
                    </ul>
                  </li>
                  <li><a href="#" class="MenuBarItemSubmenu">Washington</a>
                    <ul>
                      <li><a href="/washington/kentNew.html">Kent</a></li>
                      <li><a href="/washington/laceyNew.html">Lacey</a></li>
                      <li><a href="/washington/lakewoodNew.html">Lakewood</a></li>
                      <li><a href="/washington/puyallup-southHill-NEW.html">Puyallup South Hill Mall</a></li>
                      <li><a href="/washington/puyallup-Sunrise-New.html">Puyallup Sunrise Village</a></li>
                      <li><a href="/washington/northgateNew.html">Seattle Northgate</a></li>
                      <li><a href="/washington/seattleNew.html">Seattle University Village</a></li>
                      <li><a href="/washington/tacomaNew.html">Tacoma</a></li>
                    </ul>
                  </li>
                </ul>
              </li>
              <li><a class="MenuBarItemSubmenu" href="#">PROMOS</a>
                <ul>
                  <li><a href="/drink_specials.shtml">Drink Promos</a>              </li>
                  <li><a href="/food_specials.shtml">Food Promos</a></li>
    </ul>
              </li>
              <li><a href="/news.shtml">RAM NEWS</a></li>
              <li><a href="/about.shtml">ABOUT US</a></li>
              <li><a href="#" class="MenuBarItemSubmenu">CONTACT US</a>
                <ul>
                  <li><a href="/contact.shtml">General Info</a></li>
                  <li><a href="/employment.shtml">Careers</a></li>
                  <li><a href="/comments.shtml">Comments</a></li>
                </ul>
              </li>
              <li><a href="/banquets.shtml" class="MenuBarItemSubmenu">BANQUETS</a>
                <ul>
                  <li><a href="/banquets.shtml">Banquets</a></li>
                  <li><a href="/banquets-catering.shtml">Off-Site Catering</a></li>
                </ul>
              </li>
            </ul></th>
          </tr>
          <tr>
            <th colspan="4" align="center" valign="middle" scope="col"><img src="/RamWebsite_NEW/images/redbar.gif" width="900" height="11" /></th>
          </tr>
        </table>
    </div>
    <div id="body">
      <table width="900" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <th height="300" valign="top" scope="col"><table width="900" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <th width="225" align="center" valign="top" bgcolor="#000000" scope="col"><!-- TemplateBeginEditable name="sideBar" -->adfadsfds<!-- TemplateEndEditable --></th>
              <th width="675" align="left" valign="top" bgcolor="#FFFFFF" scope="col"><!-- TemplateBeginEditable name="body" -->
                <p><img src="/images/aboutus2.jpg" width="675" height="300" /></p>
                <p class="foodNameDesc">adfadslkj</p>
              <!-- TemplateEndEditable --></th>
            </tr>
          </table></th>
        </tr>
      </table>
    </div>
    <div id="bottomMenuSubPg">
      <table width="900" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <th width="200" align="center" scope="col"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Menu','','/RamWebsite_NEW/images/Menu_rollover.jpg',1)"><img src="/RamWebsite_NEW/images/Menu.jpg" alt="Menu" name="Menu" width="212" height="125" hspace="6" border="0" id="Menu" /></a></th>
          <th width="200" align="center" scope="col"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Big Horn Beer','','/RamWebsite_NEW/images/BeerLink2_rollover.jpg',1)"><img src="/RamWebsite_NEW/images/BeerLink2.jpg" alt="Big Horn Beer" name="Big Horn Beer" width="212" height="125" hspace="6" border="0" id="Big Horn Beer" /></a></th>
          <th width="200" align="center" scope="col"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Events','','/RamWebsite_NEW/images/EventsLink2_rollover.jpg',1 )"><img src="/RamWebsite_NEW/images/EventsLink2.jpg" alt="Events at the Ram" name="Events" width="212" height="125" hspace="6" border="0" id="Events" /></a></th>
          <th width="200" align="center" scope="col"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Gift Cards','','/RamWebsite_NEW/images/GiftCards_rollover.jpg',1)"><img src="/RamWebsite_NEW/images/GiftCards.jpg" alt="Gift Cards" name="Gift Cards" width="212" height="125" hspace="6" border="0" id="Gift Cards" /></a></th>
        </tr>
      </table>
    </div>
    <div id="bottommenu2"></div>
    <map name="Map" id="Map">
      <area shape="poly" coords="16,103" href="#" />
      <area shape="poly" coords="49,71,102,58,158,73,191,113,180,141,151,161,109,169,65,162,31,141,18,112" href="http://theram.fbmta.com/members/UpdateProfile.aspx?Action=Subscribe&amp;InputSource=W" target="_blank" />
    </map>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"/RamWebsite_NEW/SpryAssets/SpryMenuBarDownHover.gif", imgRight:"/RamWebsite_NEW/SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    </div>
    </body>
    </html>

    You have your image in the 'body editable region' wrapped in <p></p> tags (paragraph tags). <p> tags have padding and margin set on them by default.
    <p><img src="/images/aboutus2.jpg" width="675" height="300" /></p>
    You can either just remove the <p></p> tags or you can zero out the padding and margin:
    p {
    padding: 0;
    margin: 0;
    Unfortuanately the above will target every paragraph on your page which might not be desirable so I would just remove the <p> tags as it is not necessary to wrap an image in them.
    If you do want to keep the <p> tags then use some inline css to specifically remove the padding and margin on that particular one:
    <p style="padding: 0; margin: 0;"><img src="/images/aboutus2.jpg" width="675" height="300" /></p>

  • I am really in trouble with AP Div-How do I fix it on the web?

    Hi,
    I am really in trouble with my website. I have added some pictures and text on top of Fireworks Image and have published it on the website.
    But the concern is, when I zoom in & zoom out, I can see the previous text on the screen and also the picture and texts I have added using Ap Div  tag are scattered moving all to the left when I zoom out. Can someone help me how to fix this in one particular place so that it doesn't move when I zoom in or zoom out!!! I am using Adobe Dreamweaver CS3, if this will help.
    Appreciate your sincere help on this.
    Thanks in advance.

    Frankly, there's a lot that is wrong with that page:
    1. Most of your content is in the images - this means that you will get very poor search engine ranking
    2. Your extensive use of absolute positioning for layout - this means that when you enlarge the text size in the browser, you will have overflow problems on the page (for example, the terrible problems at the bottom of the page)
    3. You have used tables for layout - this is because of your use of Fireworks to create the HTML
    Each of these problems is solvable but none of them are solvable easily without a redesign of the page. A web page should be built from the top down, stacking content containers (i.e., <div>, <section>, <article>, <aside>, etc.) vertically or floating them horizontally or both. These containers would be loaded with the text content of the page, and images would be used only for cosmetic appearance. Using CSS to style/locate the content will allow you to completely move away from tables for layout. Most typical pages can be created without the use of absolute positioning which should be used only for special purposes, not for layout of the page elements.

  • Having trouble with dreamweaver cs 6 spry tabbed panels, all content in each tab showes through like

    Having trouble with dreamweaver cs 6 spry tabbed panels, all content in each tab showes through like it was all created on one page, plus mouse over doesnt work on them.
    This started all of a sudden.
    The entire website is a series of spry tabbed panels.
    http://pacificlaser.com/const.html
    if you click on General construction tab things work ok...
    if you click on Machine control tab, mouse over doesnt work and all page content of each tab show through.
    ive been looking for the answer for 4 months with no success.
    Hope a fellow dreamwever-person can help
    Thanks Rick

    You called it: your links to the SpryAssets are linking to your hard drive, not to the files within the folder on the server.
    Correct these links:
    <script src="file:///C:/Users/work/Desktop/Sites/SpryAssets/SpryTabbedPanels.js" type="text/javascript"></script>
    <link href="file:///C:/Users/work/Desktop/Sites/SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css" />
    And you should be good to go.
    Beth
    ps. If you run into more difficulties with the Spry Widgets, take your questions to the Dreamweaver Spry Forum http://forums.adobe.com/community/labs/spry, where they will get quicker attention.
    B

  • Trouble with Adobe CC desktop app and account

    Hi. I'm having trouble with my Adobe CC teacher and student subscrition and the Adobe CC desktop application. On my Macbook, adobe CC desktop application doesn't recognize my adobe subscription, but on the Adobe web site page there is my account page and i see the FREE subscription and the Premium, correctly paid. I try to uninstall the Adobe CC desktop app and to logout of adobe cc folder, but when i reinstall the desktop app, it recognize the free subscription and not the Premium. Someone could help me, please?

    Lo Zerba for information on how to resolve the connection error preventing your membership from being validated please see Sign in, activation, or connection errors | CC, CS6, CS5.5 - http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html.

  • Trouble with Reader

    Having trouble with Adobe Reader 9.5.  Cannot open program; and cannot open a .pdf file.  No error messages, just nothing happens.  Tried to delete software and re-download.  Cannot delete it - message says patch package could not be opened.

    What is your operating system?  If Windows, use http://labs.adobe.com/downloads/acrobatcleaner.html and reinstall Reader.

  • Trouble with site in flash should be visualized FULL  screen some people report to have seen very small

    REF.: trouble with site in flash that should be visualized in
    FULL screen as width/height parameters are set
    'width','100%','height','100%' - however some people report to have
    seen it very small as a “miniature”
    I simply cannot explain why some people report to see the
    flash site very small with Internet Explorer as I visualize it here
    in full screen.
    To be honest with Firefox 2 the same happens here , it does
    not open in full screen.
    I´ve pasted bellow the html source code employed ; The
    script is Adobe´s AC_RunActiveContent.js //v1.0
    Could someone please help me out ?
    Thank you
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title> </title>
    <META NAME="description" CONTENT="">
    <META NAME="keywords" CONTENT="">
    <meta http-equiv="Content-Type" content="text/html;">
    <script src="scripts/AC_RunActiveContent.js"
    type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href
    ="giovannirocco_css/giovannirocco.css" />
    </head>
    <body>
    <div align="center">
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','wid th','100%','height','100%','src','flash/giovannirocco_0','quality','high','pluginspage','h ttp://www.macromedia.com/go/getflashplayer','movie','flash/giovannirocco_0'
    ); //end AC code
    </script>
    <noscript>
    <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
    width="100%" height="100%">
    <param name="movie" value="flash/giovannirocco_0.swf"
    />
    <param name="quality" value="high" />
    <embed src="flash/giovannirocco_0.swf" quality="high"
    pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    type="application/x-shockwave-flash" width="100%" height="100%">
    </embed>
    </object>
    </noscript>
    </div>
    </body>
    </html>

    Hey ! anyone to help me please ?

  • Trouble with slow Macbook Air. I have first generation MacBook Air and have a hard time keeping hard drive from being full. Right now, I have almost 5 gigs available, but mac is slow and I keep getting color wheel when I use Mail. Any suggestions?

    Trouble with slow Macbook Air. I have first generation MacBook Air and have a hard time keeping hard drive from being full. After trashing many docs, I have almost 5 gigs available, but mac is slow and I keep getting color wheel when I use Mail. I'd like to install Lion, but now I'm afraid it will slow down my machine even further. Do I have enough free hard disc space? Is Mail problem related to free hard disc space? Thanks for your help!

    7gb of free disc space is required to install Lion.  Read this about how to free up disc space: http://pondini.org/OSX/DiskSpace.html.  Also, advice on how to speed up your mac: http://www.maclife.com/article/feature/25_ways_speed_your_mac

  • Trouble with Time Machine/Time Capsule try Backup instead

    Trouble with Time Machine preparing to download taking hogging your system followed by errors that don't make any sense even if you look at the console logs to try to figure out. Try Backup instead.
    Find the software here:
    http://www.apple.com/downloads/macosx/apple/application_updates/backup312.html
    It allows you to configure when to do back ups and specific data you want, and includes templates for configurations to make it easy. The only catch is you loose the Time Machine benefits of restoring an individual file easily. For me it gets around the issues w/ Time Machine hogging my system resources (Finder at 98% CPU cycles both cores) while "preparing backup", followed by strange failures that can't figure out, followed by more "preparing backup".

    I was running backup instead of time machine until I saw snow leopard had time machine improvements. I'm very happy with the performance so far w/ snow leopard (OS X 10.6) time machine performance.

Maybe you are looking for

  • I live in 2 countries - how do I use iTunes in both?

    I bought my iPod Touch in the USA about 2 weeks ago. I set up iTunes in Ireland. I live in Spain and in Ireland, though spend most of my time in Spain. I was informed this would not be a problem by the people in the Apple Store, but when upgrading th

  • Need conceptual advice for 16:9/4:3 menus

    Hi, First off I should say that I am undertaking my most ambitious DVD project to date and I am in well over my head. I want to order a book(s) and would appreciate any advice regarding which book(s) might best deal with the type of issues I am about

  • Frustrated by Error 503--Service Unavailable Error

    I am currently being frustrated by a Error 503--Service Unavailable error. I have worked with WL 8.x for a couple of years but just set up my first WL 9.x server. I cannot find anything in the logs and am at a loss as to how to proceed. I am not sure

  • Condition where finally block doesn't get executed?

    one condition when finally doesn't get executed?

  • Auto Start up after Shutting down

    I'm new to the Mac and am not sure of this is a normal issue or if there's a setting that I accidentally triggered. On my MacBook Pro when I shut down, it starts up again after shutting down. I'm not selecting restart and am not sure if I updated sof