• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Web page design in WO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Web page design in WO


  • Subject: Re: Web page design in WO
  • From: Kevin Xiaowen Ren <email@hidden>
  • Date: Fri, 18 Feb 2005 09:23:23 +1300

in the <style>, you have to have some code like this
#back1 {
position:absolute;
top:63px;
left:0;
width:802px;
height:280px;
background-image:url(<WEBOBJECT NAME=BackgroundImageURL1></WEBOBJECT>);
background-repeat:repeat-x;
z-index:1;
}


in wod file

BackgroundImageURL1: WOString
{
        value=getBGImageURL1;
}


in java code:
public String getBGImageURL1(){
return WOApplication.application().resourceManager().urlForResourceNamed("back1.gif", null, null, this.context().request());
}



good luck!

kevin

At 14:34 17/02/2005 -0500, you wrote:
Hi,
I tried this with my external CSS and it worked great.  However, the
CSS contains a reference to a "backgroung-image" that never shows up.
I tried the same technique using absolute paths, but that didn't seem
to work.  Any idea?
Dick

_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Web page design in WO
      • From: Richard W Williams <email@hidden>
References: 
 >Re: Web page design in WO (From: Hunter Hillegas <email@hidden>)
 >Web page design in WO (From: Florijan Stamenkovic <email@hidden>)
 >Re: Web page design in WO (From: Richard W Williams <email@hidden>)

  • Prev by Date: Re: Web page design in WO
  • Next by Date: Re: Determining if an image exists
  • Previous by thread: Re: Web page design in WO
  • Next by thread: Re: Web page design in WO
  • Index(es):
    • Date
    • Thread