Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-19-2008, 03:01 PM   PM User | #1
twohands
New to the CF scene

 
Join Date: May 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
twohands is an unknown quantity at this point
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.
twohands is offline   Reply With Quote
Old 05-20-2008, 12:52 AM   PM User | #2
BubikolRamios
Senior Coder

 
Join Date: Dec 2005
Location: Slovenia
Posts: 1,876
Thanks: 114
Thanked 76 Times in 76 Posts
BubikolRamios is on a distinguished road
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
BubikolRamios is offline   Reply With Quote
Old 05-20-2008, 01:38 AM   PM User | #3
twohands
New to the CF scene

 
Join Date: May 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
twohands is an unknown quantity at this point
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..
twohands is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:32 AM.


Advertisement
Log in to turn off these ads.