Re: problem to set background image using <body>

  •  04-08-2009, 8:41 PM

    Re: problem to set background image using <body>

    hi,
     
    may i know that how can i change the content in cuteeditor using javascript,
     
    for example :
     
    my current cuteeditor's html code is
     
    <html>
        <head>
        </head>
        <body style="background-repeat: no-repeat" background=http://localhost:2341/eTemplate_develop/member/template/abc.jpg" border="1">
        </body>
    </html>
     
    but when the use click on a button, i call a javascript to change the background image to this
     
    <html>
        <head>
        </head>
        <body style="background-repeat: no-repeat" background=http://localhost:2341/eTemplate_develop/member/template/xyz.jpg" border="1">
        </body>
    </html>
     
    i tried to use javascript string replace method, but it did not work
     
    may i know what other solution i can apply to solve this problem ?
     
    thanks
View Complete Thread