a tool to generate background

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • devphylosoff

    a tool to generate background

    hi folks

    I am looking for a tool (script, plugin, code, ...) which can generate
    background image for webpage

    look at background on http://vtorrent.info/ page or on the Vista
    webpage.
    I want to create this in fly - only give two colours and expect result
    which will be created by function.

    Is any plugin for it?
    code in php or js or .. whatever ?

    What for?
    To have possibility to change backround in conformity with current
    hour.

  • Linuxx0r

    #2
    Re: a tool to generate background

    you can use a php script as a stylesheet. in this php generated
    stylesheet you can define the background image: http://www.tizag.com/cssT/background.php
    then you just have to import your stylesheet in your page and the
    background will be displayed

    devphylosoff schrieb:
    hi folks
    >
    I am looking for a tool (script, plugin, code, ...) which can generate
    background image for webpage
    >
    look at background on http://vtorrent.info/ page or on the Vista
    webpage.
    I want to create this in fly - only give two colours and expect result
    which will be created by function.
    >
    Is any plugin for it?
    code in php or js or .. whatever ?
    >
    What for?
    To have possibility to change backround in conformity with current
    hour.

    Comment

    • Krustov

      #3
      Re: a tool to generate background

      <comp.lang.ph p>
      <Linuxx0r>
      <Sun, 10 Jun 2007 13:22:55 -0700>
      <1181506975.210 422.315210@n4g2 000hsb.googlegr oups.com>
      you can use a php script as a stylesheet. in this php generated
      stylesheet you can define the background image: http://www.tizag.com/cssT/background.php
      then you just have to import your stylesheet in your page and the
      background will be displayed
      >
      Wouldnt it be better to use the stylesheet as normal - and
      define/declare the background image in the <bodytag .

      <html>

      <head>

      <title>test</title>

      <link href="<?php print $poop_css; ?>" rel="stylesheet " type="text/css">

      </head>

      <?php
      blah blah blah
      ?>

      <body text="#FF0000" link="#FF0000" vlink="#FF0000" alink="#FF0000"
      style="backgrou nd-image: url(images/<?php print $blah; ?>.jpg);"

      Comment

      • Jon Slaughter

        #4
        Re: a tool to generate background


        "devphyloso ff" <devphyl@gmail. comwrote in message
        news:1181504206 .113968.246450@ q69g2000hsb.goo glegroups.com.. .
        hi folks
        >
        I am looking for a tool (script, plugin, code, ...) which can generate
        background image for webpage
        >
        look at background on http://vtorrent.info/ page or on the Vista
        webpage.
        I want to create this in fly - only give two colours and expect result
        which will be created by function.
        >
        I'm not sure what you are talking about? Change the background in fly?
        Is any plugin for it?
        code in php or js or .. whatever ?
        >
        What for?
        To have possibility to change backround in conformity with current
        hour.
        >
        Do you mean dynamically? That is, you want to control the background image
        programmaticall y instead of through css?

        If so you either can write a script to modify the css code and have it run
        when you want(not that hard) or set the background in the html using inline
        css but this would actually be php code. You could even allow the user to
        set there own background if you wanted. it would be something like this

        <body style="backgrou nd-image:url(<?php echo 'background.jpg '?>);">

        of course the php could be any thing that outputs a file name and you could
        make it more complex but thats the idea. Your files would need to be have
        php processing on them(so probably need to be named php).




        Comment

        • Schraalhans Keukenmeester

          #5
          Re: a tool to generate background

          At Sun, 10 Jun 2007 12:36:46 -0700, devphylosoff let h(is|er) monkeys
          type:
          hi folks
          >
          I am looking for a tool (script, plugin, code, ...) which can generate
          background image for webpage
          >
          look at background on http://vtorrent.info/ page or on the Vista
          webpage.
          I want to create this in fly - only give two colours and expect result
          which will be created by function.
          >
          Is any plugin for it?
          code in php or js or .. whatever ?
          >
          What for?
          To have possibility to change backround in conformity with current
          hour.
          Creating a rather complex gradient like the one on the site you mention
          using PHP's graphic libs (gd, imagemagick) may be quite a daunting job.
          Why don't you create a set of images outside of PHP and rotate these using
          a simple script?

          --
          Schraalhans Keukenmeester - schraalhans@the .Spamtrapexampl e.nl
          [Remove the lowercase part of Spamtrap to send me a message]

          "strcmp('apples ','oranges') < 0"

          Comment

          Working...