开发者

How can I use different background images for different pages in a multipage form using Drupal?

I'm using the webform module with page breaks to display a large form. I would like to have different images for the background of each of these different form pages. Does anyone have a suggestion for how I could do th开发者_StackOverflow社区is in Drupal?

Thanks in advance.


I figured out two ways to solve this. The first way was to use javascript to detect some pre-defined element on the page and based on the attributes of that element, add the background-image css to the div. The second way, and admittedly more drupal-like, is to add a preprocess function to the template.php file that accesses the form page number and puts a div around it with the number in it. Then you can just style that div. Thanks!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜