Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • timwu1616 Friend
    #174265

    Hello there,

    I am working on JA Kranos template. I am going to select some images for the Slideshow. However, I want to change the background color of body depending on the image’s color. Can you please tell me how to do that?

    Thank you very much.

    pavit Moderator
    #439940

    Hi

    You can change the background from this file /templates/ja_kranos/css/template.css

    body#bd {
    background: none repeat scroll 0 0 #000000;
    color: #666666;
    line-height: 1.6;
    }

    Change the #000000; to another Hex value

    timwu1616 Friend
    #439951

    <em>@pavit 302732 wrote:</em><blockquote>Hi

    You can change the background from this file /templates/ja_kranos/css/template.css

    body#bd {
    background: none repeat scroll 0 0 #000000;
    color: #666666;
    line-height: 1.6;
    }

    Change the #000000; to another Hex value</blockquote>

    Hi pavit,

    Thanks for reply.
    That’s right, I’ve found where to change the color. But, is it possible to change it dynamically based on the some condition because I want the color to be different based on the images?

    Thanks

    pavit Moderator
    #439952

    Hi

    I think that you need some php script to manage this new feature

    try to search for some free resource as background rotator

    Regards

    timwu1616 Friend
    #439953

    <em>@pavit 302748 wrote:</em><blockquote>Hi

    I think that you need some php script to manage this new feature

    try to search for some free resource as background rotator

    Regards</blockquote>

    Yes, I believe so. Can you please show some hints for what the idea is to do this?

    Thanks.

    pavit Moderator
    #439954

    Try to look at this

    or try on JED here

    cianouno Friend
    #446868

    Hi Pavit,
    great solution for background color, but if i wanto put an images as bg insted?
    The code could to be this?:


    body#bd {
    background: none repeat scroll img src="../images/bgimage.jpg";
    }

    Thank you very much
    Enrico .

    <em>@pavit 302732 wrote:</em><blockquote>Hi

    You can change the background from this file /templates/ja_kranos/css/template.css

    body#bd {
    background: none repeat scroll 0 0 #000000;
    color: #666666;
    line-height: 1.6;
    }

    Change the #000000; to another Hex value</blockquote>

    pavit Moderator
    #446870

    Hi cianouno

    You can use also

    body#bd {
    background: url("../images/yourimage.xxx") repeat-x scroll left top #ffffff;
    }

    anyway it depends on how you want manage the background

    cianouno Friend
    #447052

    Hi Pavit,
    so if i set the code as you say me, the bg change with image… let me try it, and after report here result.
    The modify is same for all kind of template? I say this because a try to use Kranos template (see this url http://homecinema.homepc.it/dimsea), and now itry your solution for background….
    See u soon
    Enrico

Viewing 9 posts - 1 through 9 (of 9 total)

This topic contains 9 replies, has 3 voices, and was last updated by  cianouno 12 years, 7 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum