Results 1 to 4 of 4

Thread: Scrollable content in firefox

  1. #1
    Join Date
    Nov 2008
    Posts
    43
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default Scrollable content in firefox

    1) Script Title: Scrollable content II

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex11/scrollc2.htm

    3) Describe problem: When previewd on IE it works/looks fine but on firefox the little up down arrows are lower than they appear in DW and lower than I want them to be, there isn't a huge difference but certainly noticable, is it possible to fix this?

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    Could you post a link to your site? And what do you mean by DW? Dreamweaver???

  3. #3
    Join Date
    Nov 2008
    Posts
    43
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default

    sorry yeah Dreamweaver, I don't know how to post a link when it isn't up and running yet (im just learning web design), but it happens if you insert the sript on a blank page or whatever, the arrows always appear lower then inteneded in firefox with this script for some reason.

  4. #4
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    You should always check your page in a browser, not in Dreamweaver. The reason why you get these discrepancies is because the arrows are inside a table and a p tag:
    HTML Code:
    <table width="175px"><td><p align="right">
    <a href="#" onMouseover="moveup()"
    onMouseout="clearTimeout(moveupvar)"><img src="up.gif"
    border=0></a> <a href="#" onMouseover="movedown()"
    onMouseout="clearTimeout(movedownvar)"><img src="down.gif"
    border=0></a></p></td>
    </table>
    If you instead remove all that ugly old code and replace it with a div container you should get what you want:
    HTML Code:
    <div id="arrows"><a href="#" onmouseover="moveup()" onmouseout="clearTimeout(moveupvar)"><img src="scrollc2_files/up.gif" border="0"></a><a href="#" onmouseover="movedown()" onmouseout="clearTimeout(movedownvar)"><img src="scrollc2_files/down.gif" border="0"></a></div>
    You can then use the id of the container to set the width to 175px or what you need, etc.

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
  •