Results 1 to 4 of 4

Thread: How to Div rotate with the help of Javascript

  1. #1
    Join Date
    Dec 2008
    Posts
    112

    How to Div rotate with the help of Javascript

    I have selected the text rotator to combine with the Internet. But I need to rotate div by 60, 150, 290 and 360 degrees. I have not set them as vertical and horizontal direction because it sometime do not understand on which side it was moving, For 60 and 290 degree rotation, I interchanged width and height and for 150 and 360 degree rotation, I kept initial but I does see much difference in their rotation what would be the problem.

  2. #2
    Join Date
    Dec 2008
    Posts
    183

    Re: How to Div rotate with the help of Javascript

    what you want is beyond the current capability of HTML/CSS. You need to change the Change 'i=(i==mycontent.length-1)? 0 : i+1' to 'i=Math.floor(Math.random()*mycontent.length)' From what I have read (briefly), write-mode may do what you want but is currently poorly supported (if at all). In order to pull regular HTML from our page and shown it based on a more selective process -- our script –- first, we need to hide the content from view.

  3. #3
    Join Date
    Oct 2008
    Posts
    167

    Re: How to Div rotate with the help of Javascript

    The CSS attribute display:none will do the job nicely, but there's also an NS4 compatibility issue. then you could create four images (in eg Photoshop) one for each of the rotations, then show these images appropriately. This allows for a more generic approach to "tagging" content than using the ID attribute.

  4. #4
    Join Date
    Jan 2009
    Posts
    143

    Re: How to Div rotate with the help of Javascript

    I will suggest you to insert the following lines after the last of the images into the HTML source, preferably immediately before the closing </body> tag. Example:

    <script type="text/javascript" src="image_change1.js"></script>
    <script type="text/javascript">
    <--
    SET_ROTATABLE("logo_new",90,"welcome",180);
    //-->
    </script>

    what you need is to search for the hidden DHTML content to create a custom collection. However, for dynamic content it is harder. I think you would need to write an applet to do the job, then include the applet on the page.

Similar Threads

  1. How to rotate corsair H80 pump
    By IkshuL in forum Hardware Peripherals
    Replies: 1
    Last Post: 29-11-2011, 07:37 AM
  2. How to rotate a pdf document
    By New buDDy in forum Windows Software
    Replies: 10
    Last Post: 07-06-2011, 03:05 AM
  3. How to do a rotate and crop in QuickTime Pro
    By Defaulter in forum Windows Software
    Replies: 5
    Last Post: 30-04-2011, 10:14 AM
  4. how to rotate an image
    By Luis-Fernando in forum Software Development
    Replies: 7
    Last Post: 02-06-2010, 11:05 AM
  5. I can't rotate my webcam
    By kennethbuhtsxD in forum Monitor & Video Cards
    Replies: 1
    Last Post: 02-10-2009, 10:47 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,748,641.80020 seconds with 16 queries