Author Topic

Balaji Ramachandran

Friday 11 June 2004 4:29:46 am

Comment40834

Hi Trond,

I have a finished static website and I am converting it to dynamic using Exponential. Right now, I have not handled any images from the article. I am trying to display the images in the html page layout like the top banner. Those images are present in news/images. This is the full script from the static webpage. I have enclosed the full javascript inside {literal}.

function fnBuildTopMenu(cIn)
{
var myImg = "images/" + cIn;
var cTemp = "";
cTemp = "<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0>";
cTemp = cTemp + "<TR><TD WIDTH=100% BGCOLOR=#E2E1E6 HEIGHT=25 ALIGN=RIGHT>";
cTemp = cTemp + "<a href='http://www.domain.com/index.html' target='_blank' class=TopMenu>Home</a> <font face=arial size=2 color=#FFB12B><b> |  </b></font>";
cTemp = cTemp + "<a href='http://www.domain.com/kghAdmitProcess.html' target='_blank' class=TopMenu>Patient Information</a> <font face=arial size=2 color=#FFB12B><b> |  </b></font>";
cTemp = cTemp + "<a href='http://www.domain.com/kghPhysicianSname.html' target='_blank' class=TopMenu>Physician Listing</a> <font face=arial size=2 color=#FFB12B><b> |  </b></font>";
cTemp = cTemp + "<a href='http://www.domain.com/kghDonation.html' target='_blank' class=TopMenu>Donation</a> <font face=arial size=2 color=#FFB12B><b> |  </b></font>";
cTemp = cTemp + "<a href='http://www.domain.com/kghMediNews.html' target='_blank' class=TopMenu>News & Events</a> <font face=arial size=2 color=#FFB12B><b> |  </b></font>";
cTemp = cTemp + "<a href='http://www.domain.com/kghCareers.html' target='_blank' class=TopMenu>Careers</a>   ";
cTemp = cTemp + "</TD></TR>";
cTemp = cTemp + "<TR><TD width=100% bgcolor=#BABABA><img src='images/spacer.gif' height=1></TD></TR>";
cTemp = cTemp + "<TR><TD WIDTH=100%>";
cTemp = cTemp + "<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0>";
cTemp = cTemp + "<TR><TD><a href='http://www.domain.com/index.html' target='_blank'><IMG SRC='images/inner-ban-mid_01.jpg' WIDTH=154 HEIGHT=107 BORDER='0'></a></TD>";
cTemp = cTemp + "<TD background='images/inner-ban-mid_02.jpg' WIDTH=100% HEIGHT=107><img src='images/spacer.gif'></TD>";
cTemp = cTemp + "<TD><IMG SRC=" + myImg + "_03.jpg WIDTH=155 HEIGHT=107></TD>";
cTemp = cTemp + "<TD><IMG SRC=" + myImg + "_04.jpg WIDTH=155 HEIGHT=107></TD>";
cTemp = cTemp + "<TD><IMG SRC=" + myImg + "_05.jpg WIDTH=154 HEIGHT=107></TD>";
cTemp = cTemp + "<TD><IMG SRC=" + myImg + "_06.jpg WIDTH=155 HEIGHT=107></TD>";
cTemp = cTemp + "</TR></TABLE></TD></TR>";
cTemp = cTemp + "<TR><TD width=100% bgcolor=#BABABA><img src='images/spacer.gif' height=1></TD></TR>";
cTemp = cTemp + "<TR><TD WIDTH=100% BGCOLOR=#E2E1E6 HEIGHT=25 ALIGN=RIGHT>";
cTemp = cTemp + "<a href='http://www.domain.com/DrGBProfile.html' target='_blank' class=TopMenu>Dr. GB Profile</a> <font face=arial size=2 color=#FFB12B><b> |  </b></font>";
cTemp = cTemp + "<a href='http://www.domain.com/kghPersonality.html' target='_blank' class=TopMenu>Personality In Focus</a> <font face=arial size=2 color=#FFB12B><b> |  </b></font>";
cTemp = cTemp + "<a href='http://www.domain.com/kghPspeak.html' target='_blank' class=TopMenu>Patient Speak</a> <font face=arial size=2 color=#FFB12B><b> |  </b></font>";
cTemp = cTemp + "<a href='http://www.domain.com/kghEducation.html' target='_blank' class=TopMenu>Educational Initiatives</a>   ";
cTemp = cTemp + "</TD></TR></TABLE>";

document.write(cTemp);
}
I am not able to use "|ezimage" for displaying the image. Any help is appreciated.

Thanks
Balaji