Welcome to TalkGraphics.com
Results 1 to 8 of 8
  1. #1

    Default Need to format HTML code (body)

    I need to format this html shopping cart script code so it blends in with my website theme / colours. Having formatted the code with class= (for Netobjects software), what tags do I need to use for Xara?

    Also, my current website structure is www.domain.com/html/pagename.html
    I have tried to add /html/newpagename.html to Xara but it does not accept / .
    Can this be done to emulate my original website structure?

    <form action=http://www.romancart.com/cart.asp method=post>
    <input type=hidden name=itemcode value='SN099'>
    <input type=hidden name=storeid value=29016>
    <input type=hidden name=mustbuy value=no>
    <input type=hidden name=include value=on>

    <TR ALIGN="left" VALIGN="middle">
    <TH class="Prices1">1 tub: £<SCRIPT LANGUAGE="JavaScript" SRC="http://remote.romancart.com/data.asp?storeid=29016&itemcode=SN099&type=1"></script>
    <br>2+ tubs: £<SCRIPT LANGUAGE="JavaScript">document.write(roc_rdd_qp1_S N099);</SCRIPT> each</TH>
    <TH class="Prices1"><CENTER><select size="1" name="quantity" class="PricesDropDown">
    <option value="0">Select Qty</option>
    <option value="1">1</option>
    <option value="2">2</option>
    <option value="3">3</option>
    <option value="4">4</option>
    <option value="5">5</option>
    </select></CENTER></TH>
    <TH class="Prices1"><CENTER><span class="OutOfStock"><SCRIPT LANGUAGE="JavaScript" SRC="http://remote.romancart.com/data.asp?storeid=29016&itemcode=SN099&type=2"></script></span></CENTER></TH>
    <TH class="Prices1"><CENTER><input type="submit" value="Buy Now"><br><script language="JavaScript">document.write(roc_rdd_email me_SN099);</script></CENTER></TH>
    </TR>


    </form></table>

  2. #2

    Default Re: Need to format HTML code (body)

    You'll need to create custom CSS styles for the form object elements and place the script in the head section of the page where the form elements appear.
    Help here: http://www.sitepoint.com/style-web-forms-css/

  3. #3

    Default Re: Need to format HTML code (body)

    Thanks, any ideas on the website pages in the /html/ directory?
    The index.html page is fine but all other are in the www.domainname.com/html/ directory.

  4. #4

    Default Re: Need to format HTML code (body)

    Nope. Xara can't export or develop a site structure like this from one .web file because it's not a HTML editor. You will need different software.

  5. #5

    Default Re: Need to format HTML code (body)

    Quote Originally Posted by ShapeShifter View Post
    You'll need to create custom CSS styles for the form object elements and place the script in the head section of the page where the form elements appear.
    Help here: http://www.sitepoint.com/style-web-forms-css/
    Quote Originally Posted by ShapeShifter View Post
    You'll need to create custom CSS styles for the form object elements and place the script in the head section of the page where the form elements appear.
    Help here: http://www.sitepoint.com/style-web-forms-css/
    Hi Shapeshifter,
    I am having problems with the css setup. I managed to change the select & text-area background-colour as these are standard names but cannot work out how to rename my current areas for change (eg class="Prices1"). Need to change the colours, font size etc.
    Can someone please make the changes to my above cart script and update the css?
    Much appreciated.
    What I have so far..

    <STYLE TYPE="text/css">
    <!-

    input {
    &nbsp;background-color: #666699;
    }

    select {
    background-color: #666699;
    color: #ffffff;
    }

    textarea {
    background-color: #666699;
    color: #ffffff;
    }

    ->
    </STYLE>

  6. #6

    Default Re: Need to format HTML code (body)

    You will have to add your text as standard markup in a placeholder object in order to add your css class.

    As I said, Xara Web Designer is not a HTML editor, it generates HTML from your graphic design, so you need to think differently.

  7. #7

    Default Re: Need to format HTML code (body)

    Attached is an example (working) of how I might do it.
    Perhaps this could be something for you to follow?


    Just open the file in Web Designer or Designer Pro and preview it to see it working.
    Details in the file.
    Attached Files Attached Files

  8. #8

    Default Re: Need to format HTML code (body)

    Hi Shapeshifter. Sorry but I missed your post until now. Much appreciated.

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •