3 Replies Latest reply on Sep 13, 2008 10:06 AM by Newsgroup_User

    How to embed (java)script?

    Peace Freak Level 1
      I have a small script (I am not sure if it is of the Java variety) that I would like to place in a webpage.

      The script produces a small animated image that I want the text in the page to wrap around. Wrapping text around a JPG is no problem, but I have no idea how to achieve the effect. Here is the script with the opening and closing angle brackets deleted so it remains readable:
      script src=" http://www.yami-kodomo.jp/bp/yami_blog.js" charset="Shift_JIS"></script

      How do I put this into a page so text will wrap around it?

      Thanks in advance!
        • 1. Re: How to embed (java)script?
          Level 7
          It's javascript, not Java. The two are very very different.

          How do you want the text to wrap?

          --
          Murray --- ICQ 71997575
          Adobe Community Expert
          (If you *MUST* email me, don't LAUGH when you do so!)
          ==================
          http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
          http://www.dwfaq.com - DW FAQs, Tutorials & Resources
          ==================


          "Peace Freak" <webforumsuser@macromedia.com> wrote in message
          news:gaga1s$e8c$1@forums.macromedia.com...
          >I have a small script (I am not sure if it is of the Java variety) that I
          >would
          > like to place in a webpage.
          >
          > The script produces a small animated image that I want the text in the
          > page to
          > wrap around. Wrapping text around a JPG is no problem, but I have no idea
          > how
          > to achieve the effect. Here is the script with the opening and closing
          > angle
          > brackets deleted so it remains readable:
          > script src=" http://www.yami-kodomo.jp/bp/yami_blog.js"
          > charset="Shift_JIS"></script
          >
          > How do I put this into a page so text will wrap around it?
          >
          > Thanks in advance!
          >

          • 2. Re: How to embed (java)script?
            Peace Freak Level 1
            Hello Murray!

            I would just like the 'image' to be on the left side of the page and the text to wrap around it on the top, right and bottom sides with say a five pixel margin... The page it will go into is a news page and thus, the position of 'image' will change in the y axis as new stories are added at the top.

            Thank you Murray!
            • 3. Re: How to embed (java)script?
              Level 7
              It's an interesting question. I suppose you could create a CSS rule with a
              descendent selector that would only apply to that image when it is written
              to the page by the script. The CSS would then make the image float left,
              e.g.,

              #somecontainername img { float:left; }

              I am assuming that you have something like -

              <div id="somecontainername"><script
              src=" http://www.yami-kodomo.jp/bp/yami_blog.js"
              charset="Shift_JIS"></script>Your text here.</div>


              --
              Murray --- ICQ 71997575
              Adobe Community Expert
              (If you *MUST* email me, don't LAUGH when you do so!)
              ==================
              http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
              http://www.dwfaq.com - DW FAQs, Tutorials & Resources
              ==================


              "Peace Freak" <webforumsuser@macromedia.com> wrote in message
              news:gaghv8$map$1@forums.macromedia.com...
              > Hello Murray!
              >
              > I would just like the 'image' to be on the left side of the page and the
              > text
              > to wrap around it on the top, right and bottom sides with say a five pixel
              > margin... The page it will go into is a news page and thus, the position
              > of
              > 'image' will change in the y axis as new stories are added at the top.
              >
              > Thank you Murray!
              >