Announcement

Collapse
No announcement yet.

Scrolling content problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Scrolling content problem

    Hi Guys,
    If you check out my site you will see that there is a news box on the right hand side. Well it should be scrolling buts not. It does when i preview the site but once i upload it it dies on me. Ive checked the code and as far as i can see there is no problem.
    If anyone could have a quick glance at the code and see if they can see something i cant i would be very grateful.

    Thanks,
    Ash - webiste manager

    www.ukbathroomsonline.co.uk
    ukBathroomsOnline
    www.ukbathroomsonline.co.uk

    #2
    You have

    <iframe id="NewsWindow" src="http://www.creepersbsp.co.uk/news_win.htm" width="130" height="200" marginwidth="0" marginheight="0" frameborder="0" scrolling="no" style="border: #01349A 1px solid;"></iframe>

    and that scrolling="no" is probably the culprit.

    Also, try viewing the page in Firefox and use its Tools / JavaScript Console to see other error messages.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Hi,
      Thanks for the reply!
      The scrolling="no" code is to set manual scrolling and it should be automatic. I tried the java console and no errors. Im completely baffled!
      Any other suggestions would be great.

      Ash
      ukBathroomsOnline
      www.ukbathroomsonline.co.uk

      Comment


        #4
        The scrolling attribute on an iframe can be either - "no", "yes" or "auto". You have "no" in your code and you want it automatic if i can decipher your post. Can you not change it to "auto" to get what you want?

        Comment


          #5
          The first thing i tried was to change it to auto but nothing. Thats why im baffled!

          Ash
          ukBathroomsOnline
          www.ukbathroomsonline.co.uk

          Comment


            #6
            The direct link to the creeper site shows this at the bottom...

            The IFrame size and "frameheight" variable should match so the text re-scrolls from the bottom of this window


            Bikster
            SellerDeck Designs and Responsive Themes

            Comment


              #7
              It does match
              ukBathroomsOnline
              www.ukbathroomsonline.co.uk

              Comment


                #8
                Perhaps creepersbsp have added some code to their pages that's messing you up. Try replacing the creepersbsp URL to point to a simple page for a quick test.
                Norman - www.drillpine.biz
                Edinburgh, U K / Bitez, Turkey

                Comment


                  #9
                  Nope still nothing!
                  Heres the code from the page holding the content for the scroller if its helps.

                  <html><head>

                  <title>News</title>



                  <style type="text/css">
                  <!--
                  BODY { margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; }


                  /* FONT COLORS */


                  TABLE { COLOR: #000000; FONT: 11px arial, sans-serif; font-weight: normal }

                  .title { COLOR: #0033FF; FONT: 12px arial, sans-serif; font-weight: bold; }

                  /* PAGE LINK COLORS */

                  a:link { color: #0033FF; text-decoration: underline; }

                  a:visited { color: #6633FF; text-decoration: underline; }

                  a:active { color: #0033FF; text-decoration: underline; }

                  a:hover { color: #6699FF; text-decoration: none; }

                  -->
                  </style>



                  </head>

                  <BODY BGCOLOR="#ffffff" TEXT="#000000" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" marginheight="0" marginwidth="0" onMouseover="scrollspeed=0" onMouseout="scrollspeed=current">

                  <div id="NewsDiv" style="position:absolute; left:0; top:0; width:100%">
                  <table cellpadding="5" cellspacing="0" border="0" width="100%"><tr><td>






                  <!-- SCROLLER CONTENT STARTS HERE -->


                  <span class="title">
                  Website Update<br>
                  </span>
                  Site maintenance carried out on 28th October 2006. The update included the introduction of this news ticker.

                  <br><br><br>



                  <span class="title">
                  NEW FEATURE!<br>
                  </span>
                  During the last update we added this small addition to the site. Keep upto date with the latest products and offers as they hit our virtual shelves.

                  <br><br><br>





                  <span class="title">
                  Come together<br>
                  </span>
                  Looking for good plumber or how many ducks you can fit in the bath of your dreams, well why not ask in our forums. COMING SOON!

                  <br><br>



                  <br>



                  <!-- SCROLLER CONTENT ENDS HERE -->






                  </td></tr></table>
                  </div>




                  <!-- YOU DO NOT NEED TO EDIT BELOW THIS LINE -->




                  <script language="JavaScript" type="text/javascript">
                  <!-- HIDE CODE

                  var scrollspeed = 2 // SET SCROLLER SPEED 1 = SLOWEST
                  var startdelay = 2 // START SCROLLING DELAY IN SECONDS
                  var nextdelay = 0 // SECOND SCROLL DELAY IN SECONDS 0 = QUICKEST
                  var topspace = "2px" // TOP SPACING FIRST TIME SCROLLING
                  var frameheight = "200px" // IF YOU RESIZE THE WINDOW EDIT THIS HEIGHT TO MATCH


                  current = (scrollspeed)
                  function NewsScrollStart(){
                  marqueeheight=document.all? parent.document.all.NewsWindow.height : parent.document.getElementById("NewsWindow").getAttribute("height")
                  dataobj=document.all? document.all.NewsDiv : document.getElementById("NewsDiv")
                  dataobj.style.top=topspace
                  AreaHeight=dataobj.offsetHeight
                  setTimeout("ScrollNewsDiv()",( startdelay * 1000 ))
                  }

                  function ScrollNewsDiv(){
                  dataobj.style.top=parseInt(dataobj.style.top)-(scrollspeed)
                  if (parseInt(dataobj.style.top)<AreaHeight*(-1)) {
                  dataobj.style.top=frameheight
                  setTimeout("ScrollNewsDiv()",( nextdelay * 1000 ))
                  }
                  else {
                  setTimeout("ScrollNewsDiv()",30)
                  }

                  }
                  window.onload=NewsScrollStart
                  // END HIDE CODE -->
                  </script>


                  </body>
                  </html>

                  Ash
                  ukBathroomsOnline
                  www.ukbathroomsonline.co.uk

                  Comment


                    #10
                    Ive pinpointed an error to: "Error: uncaught exception: Permission denied to get property HTMLDocument.getElementById" - Firfox error console

                    Any suggestion?
                    ukBathroomsOnline
                    www.ukbathroomsonline.co.uk

                    Comment


                      #11
                      Now I see what you're talking about. When you say scrolling, you don't mean using the right hand scrollbar, but some JavaScript that animates the frame. You don't have control over that JavaScript as it's supplied with the feed.

                      Lets see if it's some interaction with Actinic or not. Try making a test page (not an Actinic page) that incorporates this iframe. Upload said page manually or via Advanced / Additional files. See if that works. If so, we've an Actinic compatibility problem. If not you should contact the feed's webmaster.
                      Norman - www.drillpine.biz
                      Edinburgh, U K / Bitez, Turkey

                      Comment


                        #12
                        i created a test site at www.creepersbsp.co.uk/TESTTEST.html and it did work but im wondering whether that was because the news_win.htm file was uploaded onto the same server whereas on the other its remote. Though ive discovered it will work in actinic if i give the source page a local directory. If i try and give it a location such as just "news_win.htm" it cant find thepage (Ive had this problem before). To get around this ive uploaded the news_win.htm file onto a seperate server and then it appears but no scrolling.
                        Thanks for all your help so far.
                        Any more suggestion?

                        Ash
                        ukBathroomsOnline
                        www.ukbathroomsonline.co.uk

                        Comment


                          #13
                          Contact the feeds webmaster or support people.
                          Norman - www.drillpine.biz
                          Edinburgh, U K / Bitez, Turkey

                          Comment

                          Working...
                          X