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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    May 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Image positioning

    I'm not a programmer. Best I can do is grab a snippet of someone else's work, thank them and wrestle with it for my own nefarious purposes.

    I found a bit of code that rips the image from todays comic strip {Doonesbury, in this case} and shows it without everything else that appears on the page.

    What I'd like to do is set up a comics page, residing on my computer, that shows strips only, one after the other, without dates or titles.

    I tweaked the original code into this...

    Code:
    <script type="text/javascript">
    var t=new Date();var y=t.getYear();var sy=y;if(y<1000){y+=1900;}sy%=100;if(sy<10){sy='0'+sy;}var m=t.getMonth()+1;if(m<10){m='0'+m;}var d=t.getDate();if(d<10){d='0'+d;};
    location='http://images.ucomics.com/comics/db/'+y+'/db'+sy+m+d+'.gif'
    location='http://images.ucomics.com/comics/crbc/2008/crbc'+y+sy+m+d+'.gif'
    location='http://www.sheldoncomics.com/strips/sd'+sy+m+d+'.gif'
    </script>
    ...but it shows only the last strip on the list. I presume each strip is overwriting the one before it but I don't know how to separate them to get them to follow one after the other. Any help would be much appreciated.

  • #2
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,959
    Thanks
    120
    Thanked 76 Times in 76 Posts
    google for IFRAME, put four of them on page, set href and that is it

    look allso this:

    http://codingforums.com/archive/index.php?t-20439.html

  • #3
    New to the CF scene
    Join Date
    May 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks, Bubikol. Is there no way to do something like insert line break between images?
    Last edited by twohands; 05-20-2008 at 03:02 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
    •