#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2013
    Posts
    1
    Rep Power
    0

    Need someone to correct my code


    I'm trying to rotate the square along with the text, using replace property in the style section, but not sure what I did wrong.


    Here the html full page:


    [
    <html>
    <head>
    <script>
    function w()
    {
    var v=document.getElementById(ẅe);
    var c=v.replace("444","
    transform:rotate(-80deg);
    -ms-transform:rotate(45deg);
    -webkit-transform:rotate(-66deg)");
    }
    </script>





    <style id="we">

    div
    {
    font-size:200%;
    width:300px;
    height:300px;
    background:red;
    444;
    }
    </style>
    </head>
    <body>



    <div id=gt> dklghrilghfd </div>

    <input type="button" value="90" onclick="w();">




    </body>

    </html>]
  2. #2
  3. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2015
    Posts
    1
    Rep Power
    0
    Please check bellow code


    Code:
    <html>
    <head>
    <script>
    function w()
    {
    var v=document.getElementById(ẅe);
    var c=v.replace("444","
    transform:rotate(-80deg);
    -ms-transform:rotate(45deg); 
    -webkit-transform:rotate(-66deg)");
    }
    </script>
    
    
    <div id="we"style="font-size:200%;width:300px;height:300px;background:red;444;">
    </div>
    </head>
    <body>
    <div id=gt> dklghrilghfd </div>
    
    <input type="button" value="90" onclick="w();">
    
    </body>
    
    </html>

IMN logo majestic logo threadwatch logo seochat tools logo