User Profile

Collapse

Profile Sidebar

Collapse
malcster2
malcster2
Last Activity: Nov 16 '08, 06:40 PM
Joined: Jun 30 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • thats why i've done all my sizes/measurements in percentages rather than pixels, it's just the text sizes that are the problem.

    so am i going about this the wrong way?
    am i better of doing all measurements in pixel size, and let the user adjust their resolutions?

    please advice, as i am new to web design, and am very much in the trial and error stage.

    also, common sense, and several sites and books,...
    See more | Go to post

    Leave a comment:


  • so it's like a resolution compromise?
    See more | Go to post

    Leave a comment:


  • thanks for all your help. i've come to the conclusion this problem is not as easy to solve as it should be just using a css percentage to make the font size proportional.

    i am new to web developement, and i was wondering if this is a common problem, or are most sites developed with just a single resolution in mind?
    See more | Go to post

    Leave a comment:


  • i have changed the % of the font size in my css file, but in the lower resolutions the text(in this case, links) go of the bottom of the div(which in this case is a sidebar)

    i know this is not neccesarily a javascript prob, but don't really want to have to start a new thread elsewhere.

    is there not a clever way that the text can be clerverly resized depending on the res size?
    See more | Go to post

    Leave a comment:


  • well, i thought i would need to write a javascript to change the fontsize after finding the window.screen.w idth/height.
    See more | Go to post

    Leave a comment:


  • malcster2
    started a topic Change font size according to resolution

    Change font size according to resolution

    hello

    i am putting together a web site that i would like to be virtually identical in all screen resolutions.

    99% of the elements have % widths and height, rather than px measurements. so this is not the problem.

    the problem i have is with font sizes.

    does anyone know the best code to use change the fontsize according to the screen resoluiton?

    malc
    See more | Go to post

  • ajax beginner: refresh button call doesn't change data

    hello, i am a beginner to ajax.

    i have created a mysql database, which i would like to access from a web page.
    i have created 3 files, a html to display the data, a php file to extract the data, and a javascript file to to the clever stuff.

    when i access the html page, all the data is displayed correcty, but if i add or delete any records, and press the button i have created to refresh the data(without reloading),...
    See more | Go to post
    Last edited by acoder; Jul 11 '08, 09:29 AM. Reason: Added [code] tags

  • malcster2
    replied to Object Expected Error
    thanks, works fine. hope to speak again
    See more | Go to post

    Leave a comment:


  • malcster2
    replied to Object Expected Error
    i've done all my measurements using percentages rather than pixels.
    but i find that when viewing in lower resolutions, font sizes, if not reset, looks dispraportionat e.

    i've put my the 1280 check in to start with, but will run checks for other widths.

    using the code i've already given you, what do you think the best way to write it is?

    also, to clarify, what exactly is wrong with my code i have...
    See more | Go to post

    Leave a comment:


  • malcster2
    replied to Object Expected Error
    sorry to sound thick, but how would i implement this? at the moment, it's a very basic page, with no div's. so my code is:

    Code:
    function chkwidth()
    {
     
    
     if (window.screen.width == 1280)
      {
         document.getElementById("style1").style.text.fontSize="28";
      }
      
     
    } 
    ....
    
    <body onload="chkwidth()">
    ...
    See more | Go to post
    Last edited by acoder; Jun 30 '08, 09:23 PM. Reason: Added [code] tags

    Leave a comment:


  • malcster2
    replied to Object Expected Error
    thanks

    any idea on how to create my style with javascript?
    See more | Go to post

    Leave a comment:


  • malcster2
    replied to Object Expected Error
    sorry, see what you mean, should be if(condition).. ..

    anyway, i don't get the error any more, but the style font is not being set, i.e

    document.write( "<style type='text/css'> <!-- .style1 {font-size: 18px} --> </style>");

    is not being written to page. i know this because the text 'hello' is not being set the sz 18.

    any ideas
    See more | Go to post

    Leave a comment:


  • malcster2
    replied to Object Expected Error
    am typing in caps to differentiate between me and the code, sorry if it seems i'm shouting.

    the if statement is in the curly brackets of the function.

    how would you write it?
    See more | Go to post

    Leave a comment:


  • malcster2
    started a topic Object Expected Error

    Object Expected Error

    HELLO, I AM VERY NEW TO JAVA SCRIPT PROGRAMMING.
    I AM PUTTING TOGETHER A PAGE FOR A FRIEND. THAT LOOK DEPENDS VERY MUCH ON SCREEN RESOLUTION, SO I AM TRY TO DETECT IT, AND CHANGE FONTS ACCORDINGLY. MY CODE SO FAR IS:

    Code:
    <head>
    <script type="text/javascript">
    
    function chkwidth()
    {
     alert(window.screen.width);
    
     x = window.screen.width;
     
     if x
    ...
    See more | Go to post
    Last edited by acoder; Jun 30 '08, 11:05 AM. Reason: Added [code] tags
No activity results to display
Show More
Working...