Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 11 of 11
  1. #1
    air
    air is offline
    New to the CF scene
    Join Date
    May 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    scroll bar in browser?

    hi,

    i have made my flash site not to scale(when writing the script
    Stage.scaleMode = "noScale"

    but when i open the page,there is not scroll bar in the browser(html).(so I cant see down of the page)

    How can I enable ,with a script the scroll bar?is it possible?or in the HTML?
    if not any other suggestions please?

    thank you
    Last edited by WA; 06-21-2012 at 05:21 PM.

  • #2
    Regular Coder
    Join Date
    Jun 2007
    Posts
    805
    Thanks
    123
    Thanked 23 Times in 23 Posts

  • #3
    air
    air is offline
    New to the CF scene
    Join Date
    May 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hi,thanks for the answer,i copy and paste that script

    <body style="overflow: auto;">

    script,but in IE didnt work,so dosnt apear any scrall bar.anything else i can do please?
    or should i paste that script:
    p
    {
    overflow: scroll
    }

    thank you in advanced very much
    Last edited by WA; 06-21-2012 at 05:22 PM.

  • #4
    air
    air is offline
    New to the CF scene
    Join Date
    May 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    [link removed]
    Last edited by VIPStephan; 03-19-2011 at 03:00 AM. Reason: removed link by request

  • #5
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,863
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    I couldn't see anything since flash is blocked in my browser.
    But, you have some markup errors, particularly, no DOCTYPE. see them http://validator.w3.org/check?uri=ht...Inline&group=0
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #6
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,787
    Thanks
    6
    Thanked 1,022 Times in 995 Posts
    Quote Originally Posted by air View Post
    […] but when i open the page,there is not scroll bar in the browser(html).(so I cant see down of the page) […]
    …this and that:

    Quote Originally Posted by abduraooft View Post
    I couldn't see anything since flash is blocked in my browser.
    Is the reason why Flash sites are generally bad. Your site should not rely on some proprietary technology that requires additional software. And at the very least you must provide some alternative (which is HTML) for people that don’t have Flash for any reason (and really, not everyone has a Flashplayer installed).

    What I can suggest for the moment is that you put your flash object in a div element and apply a specific height to that div.
    On the other hand, actually there shouldn’t be any need for that noscale function as you can set a fixed height and width in the HTML/JavaScript itself:

    Code:
    		AC_FL_RunContent(
    			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
    			'width', '100&#37;',
    			'height', '100%',
    			'src', 'index',
    …just set fixed units, not relative ones.

    And seriously: If you’er gonna have a website, learn HTML! Otherwise pay someone to do it properly or just scrap the website idea.

  • #7
    air
    air is offline
    New to the CF scene
    Join Date
    May 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks very much for all the answers.
    I am actually learning still HTML(i m a student) so I know there is quite a lot to do.

    I checked that site you send me :
    no DOCTYPE. see them http://validator.w3.org/check?uri=ht...Inline&group=0
    and is there any way that that also corect the errors I have in the script please?
    I am not familiar with no DOCTYPE.

    could you please help me to create one please...

    thank you

  • #8
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,787
    Thanks
    6
    Thanked 1,022 Times in 995 Posts
    Using Firefox and typing “doctype” into the address bar brings you directly to this site: http://alistapart.com/articles/doctype/

    Make use of search engines to get answers to your questions. And to give you a hint: I’d recommend you to use (X)HTML strict doctype.

  • #9
    air
    air is offline
    New to the CF scene
    Join Date
    May 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hi
    i try to put diffrent DOCTYPE from that page http://www.alistapart.com/articles/doctype/

    on my HTML but when i upload it back and tryied it in Firefox the page is croped and show only some part...
    why is that please?
    whithout DOCTYPE it shows it centered....

    please help

  • #10
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,787
    Thanks
    6
    Thanked 1,022 Times in 995 Posts
    Add html, body {height: 100&#37;;} (or a fixed unit like px) in your CSS.

  • #11
    air
    air is offline
    New to the CF scene
    Join Date
    May 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hi
    i fixed the size as you told me with px. but now its moving the whole page on the left side,and its not in the center.

    how can I do it in the center please?
    i found that script
    .centered {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 50&#37;;
    height: 50%;
    margin: auto;
    }

    and use it but didnt worked so i dont know what to do please

    thank you
    Last edited by air; 05-20-2008 at 09:40 AM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •