1. Welcome! Please take a few seconds to create your free account to post threads, make some friends, remove a few ads while surfing and much more. ClutchFans has been bringing fans together to talk Houston Sports since 1996. Join us!

JavaScript Question

Discussion in 'BBS Hangout' started by mogrod, Oct 17, 2005.

Tags:
  1. mogrod

    mogrod Member

    Joined:
    Oct 24, 2003
    Messages:
    4,257
    Likes Received:
    322
    Hey, got a question for you web gurus out there.

    I am building a site for a magazine in which the whole thing is online avaiable for people to log on and browse through each month's whole issue, page by page.

    Does anyone know of a good JavaScript that will let me do this effectively? Something like a manual slide show or something with the forward and back arrows/buttons for the viewer to click.

    I found one that is REAL easy to use, but acts real quirky, especially with different browsers.

    Any and all help would be GREATLY appreciated.

    Thanks
     
  2. droxford

    droxford Member

    Joined:
    Oct 26, 2001
    Messages:
    10,598
    Likes Received:
    2,131
    Check out (and rip off) the code from this site:
    http://www.iht.com/articles/2005/10/10/sports/ASTROS.php

    Also, toy around with their "clippings" feature. (To the left of the headline, right next to the word "Baseball" is a little icon. click on it, and it adds that article to your "clippings" collection. Purdy cool.
     
  3. MR. MEOWGI

    MR. MEOWGI Contributing Member

    Joined:
    Jul 2, 2002
    Messages:
    14,382
    Likes Received:
    13
    Why don't you just put the magazine out as .pdf files to download?
     
  4. SwoLy-D

    SwoLy-D Member

    Joined:
    Jul 20, 2001
    Messages:
    37,618
    Likes Received:
    1,456
    yeah, nice catch, droxford. I like that.

    Only thing I found is that they load the entire article onto the page, and let you scroll through the columns even while your mouse is over the columns. I don't think mogrod wanted this, since it will load the entire magazine onto one page. It's still an AWESOME script, nonetheless. Check out the FONT + and - scripts on the side, too... I like those.

    mogrod, are the pages in PDF or regular text? I believe that manipulating a PDF page by page will be possible using the page hash technique for locating a specific part through JavaScript.

    Do you know that JavaScript can access any object containing controls (next, play, pause, stop) and change states?

    Besides being able to manipulate images and form fields, JavaScript can also "turn" PDF pages. Post, if possible, the location of the script that acts "quirky" according to you. I am sure that with the expertise on this BBS, someone will find out what "quirks" can be fixed on the one you already have.

    Have you ever written a lengthy JavaScript without "borrowing" it from anyone? ;)
     
  5. mogrod

    mogrod Member

    Joined:
    Oct 24, 2003
    Messages:
    4,257
    Likes Received:
    322
    Actually, to tell you the truth, I've never really dealt with Java before. I know, big surprise.

    We PDF all the pages in each magazine to send to the printer. I have considered just posting a link for people to download, but got rebuffed by he sales reps in the office. I know, they have WAY too much say around here, but they are thinking of their clients.

    Anyway, I have been batching the PDFs through Photoshop which opens, crops, RGBs, makes 72 DPI, and saves each page as a JPG. This is what I have been using.

    I found this JavaScript online somewhere and, like I said is very easy to use. Just tell it how many pages I have, what I name them, and what file type they are and that's it. It does the rest. But, it either just doesn't flat out work in certain browsers or won't load some pages even on the browsers it does work on. Not to mention I'm on a Mac and it works even worse there.

    Here is the page if you would like to look.

    http://www.houstonlifestyles.com/pages/TEMPLATE.html

    Again, I appreciate the help. I just want an easy way to update the site every month since we have 3 magazines we put online monthly with more coming, and a limited time to work on them monthly.
     
  6. droxford

    droxford Member

    Joined:
    Oct 26, 2001
    Messages:
    10,598
    Likes Received:
    2,131
    Just FYI JavaScript is a completely different and unrelated language than Java. The only thing they have in common is the j-a-v-a in their name.
     
  7. SwoLy-D

    SwoLy-D Member

    Joined:
    Jul 20, 2001
    Messages:
    37,618
    Likes Received:
    1,456
    Nice site, mogrod. Ewwww... Java applets are NOT cool anymore... :(

    It's good that you're using some other medium, particularly a JPEG, to output text that "can't be stolen", but you'd be surprised how many people will SHARE your magazine because they've downloaded it. I guess that's the same as me buying SI and then letting you read it. No biggie, according to your sales rep dudes, but I would recommend a media outlet that doesn't let someone steal your JPGs.

    p.s. since you have line art and text for output to images, use GIF. Just give it a try... your images will be smaller on byte size.

    I would also recommend using FLASH's slideshow samples (there are a couple samples in their latest) that let you put images so that someone can flip them inside the Flash animation.

    Last, but not least, use FireFox's JavaScript console to determine if a JavaScript has errors.
     
  8. AMS

    AMS Member

    Joined:
    Oct 8, 2003
    Messages:
    9,646
    Likes Received:
    218
    pdf is the devil
     

Share This Page