SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru godsfshrmn's Avatar
    Join Date
    Mar 2001
    Posts
    671
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Using screen size, res, and php

    I know nothing about JS, except you can get the user's screen size and colors. How can I add on the end of calling an image like this:
    <img src="track.php3?size=800x600&colors=bla">
    s c r i p t s f o r y o u . n e t
    ScriptsForYou

  2. #2
    JavaScript Guru (Big Ego) Arielladog's Avatar
    Join Date
    Jul 1999
    Location
    SC, USA
    Posts
    390
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey,

    Try something like this:

    Code:
    <script language="javascript" type="text/javascript">
    document.write('<img src="track.php3?size='+screen.width+'x'+screen.height+'&colors='+screen.colorDepth+'">');
    </script>
    aDog


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
  •