PDA

View Full Version : XHTML Question




Petar
02-03-2008, 04:26 PM
Could someone maybe tell me where I should place this ad code so that it appears underneath stuff on the following page correctly? Please bear with me, I dont really know any programming, I'm just working with code other people built for me when I had other people building for me. Here's the site by the way: www.letters4liberty.org
Thanks.

Ad code:

<script type="text/javascript">
google_ad_client = "pub-5026924920119152";
/* 728x90, created 2/2/08 */
google_ad_slot = "3773355511";
google_ad_width = 728;
google_ad_height = 90;

</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

Page in question:

<!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"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ice="http://www.icesoft.com/icefaces/component"
xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition template="template.xhtml">
<ui:define name="title"></ui:define>
<ui:define name="body">
<ice:form partialSubmit="false">
<ice:outputText value="#{emailPrintedBean.errorMsg}" style="color: red" />
<table border="0" cellspacing="1" cellpadding="2" style="padding-left: 10px" width="100%">
<tr>
<td align="right"><ice:outputLabel value="Newspaper Name:" for="newspaper" styleClass="labelClass"/>
</td>
<td><ice:inputText styleClass="inputbox" id="newspaper"
required="false" tabindex="10" value="#{emailPrintedBean.newspaper}"
binding="#{emailPrintedBean.newspaperFld}" partialSubmit="true" /> <ice:graphicImage
url="images/#{emailPrintedBean.newspaperImage}" width="15" height="15" />
</td>
</tr>

<tr>
<td align="right"><ice:outputLabel value="Newspaper Email Address:" for="email" styleClass="labelClass"/>
</td>
<td><ice:inputText styleClass="inputbox" id="email"
required="false" tabindex="20" value="#{emailPrintedBean.email}"
binding="#{emailPrintedBean.emailFld}" partialSubmit="true" /> <ice:graphicImage
url="images/#{emailPrintedBean.emailImage}" width="15" height="15" />
</td>
</tr>

<tr>
<td align="right" valign="top"> <ice:outputLabel value="Date Appearing In Print:" for="whenSentFld" styleClass="labelClass" /></td>
<td>
<ice:selectInputDate id="whenSentFld" tabindex="30"
value="#{emailPrintedBean.when}" popupDateFormat="yyyy/MM/dd"
imageDir="xmlhttp/css/xp/css-images/"
required="false"
renderAsPopup="true" />
</td>
</tr>

<tr>
<td align="right"><ice:outputLabel value="Subject Line:"
for="subject" styleClass="labelClass" /></td>
<td><ice:inputText styleClass="inputbox" id="subject"
required="false" tabindex="40" value="#{emailPrintedBean.subject}"
binding="#{emailPrintedBean.subjectFld}" partialSubmit="true" /> <ice:graphicImage
url="images/#{emailPrintedBean.subjectImage}" width="15" height="15" />
</td>
</tr>



<tr>
<td align="right" valign="top"><ice:outputLabel value="Body Text:" styleClass="labelClass" for="bodyTextArea" /></td>
<td valign="top" style="height: 100px">
<ice:inputTextarea id="bodyTextArea" tabindex="50"
value="#{emailPrintedBean.body}"
cols="80" rows="7"
partialSubmit="true"
style="width:280px;height:80px;overflow: auto;"
styleClass="inputbox"
/>
</td>
</tr>
</table>

<div style="padding-left: 370px;">
<div class="button1-left">
<div class="next">
<table>
<tr>
<td><ice:commandLink id="canceBtn" title="Cancel email sent"
action="#{emailPrintedBean.cancelAction}" style="border:none;">
<ice:graphicImage url="images/buttons/cancel.png" width="48"
height="20" styleClass="noborder"
onmouseover="this.src='images/buttons/cancel_over.png'"
onmouseout="this.src='images/buttons/cancel.png'"
onmousedown="this.src='images/buttons/cancel_down.png'" />
</ice:commandLink></td>
<td><ice:commandLink id="createBtn"
title="Create email printed record"
action="#{emailPrintedBean.createAction}" style="border:none;">
<ice:graphicImage url="images/buttons/create.png" width="48"
height="20" styleClass="noborder"
onmouseover="this.src='images/buttons/create_over.png'"
onmouseout="this.src='images/buttons/create.png'"
onmousedown="this.src='images/buttons/create_down.png'" />
</ice:commandLink></td>
</tr>
</table>
</div>
</div>
</div>
</ice:form>
</ui:define>
</ui:composition>
</html>

Petar
02-03-2008, 04:27 PM
Heh, the smily's in the code represent the word f@aces by the way.

:)