--
Webdeveloper.com
-
- -
 
Free Newsletter
Sign up for the
free
WebDeveloper
E-mail newsletter

 
- -
-
--
-

- -
 
Search webdeveloper.com
 
search internet.com
 
- -

WebTools that Deliver Results: NetMechanic


The Webdeveloper channel
hm-v6-139x61.gif

Database Journal: The Knowledge Center for Database Professionals
find a web host with:
CGI Access
DB Support
NT Servers
UNIX Servers
Telnet Access

advanced search
jobs

Get FREE Development Info via your Email!

The Webdeveloper channel
FlashKit
GIF.com
HiermenusCentral
webdeveloper Jobs
Java Boutique
JavaScript.com
JavaScript Source
ScriptSearch
StreamingMedia World
WDJ
WDVL
WebDeveloper.com
WebReference.com
XMLFiles.com


internet.com
Internet News
Small Business

Advertise
Newsletters
Tech Jobs
E-mail Offers

internet.commerce
- -

Click here for a list of Dr. Website's most frequently asked questions (and answers!).

Dr. Website® Archives 2001

August 16, 2001
    Question:
    Dear Dr. Website:
    Is is possible to add a different link to each frame of an animated gif? We currently use a cgi script to rotate banner ads every time the page is refreshed, but the advertisers don't like the fact that they need to refresh the page a few times before their ad appears. Each gif has a unique link to the advertisers sites. Any help would be appreciated.


    Thanks

    Answer:
    Unfortunately, a link from an animated gif is no different than a link from any other gif. The link is not referenced by the frames in the animation, so there is no way to dynamically alter the link when each frame plays. Your best bet, if you wish to do it that way, is to use a Java applet that rotates through several images, each with its own URL. You can find such an applet here: http://www.javaboutique.com/
    Thanks,

    -- Dr. Website

    Question:
    Dear Dr. Website:
    Thanks for your great site and the offer to answer questions!

    I use the following code on my site to have photos pop up when a visitor clicks on a thumbnail.

    ----------

    function popupwin(ImageName,Desc,Date,Location) { var PicDir = "./pix/";

    var PicHTML = "";

    PicHTML += "<html>\n<head>\n<title>\n</title>\n</head>\n"; PicHTML += "<body background='./bindertile1.gif'>\n<BLOCKQUOTE><BLOCKQUOTE>\n<table border='1' cellpadding='3'>\n"; PicHTML += "<tr><td colspan='2' align='center'><img src='" + PicDir + ImageName + "'></td></tr>\n"; PicHTML += "<tr><td colspan='2' align='center'><b>" + Desc + "</b></td></tr>\n"; PicHTML += "<tr><td><b>Location: </b>" + Location + "</td>"; PicHTML += "<td><b>Date: </b>" + Date + "</td></tr>\n"; PicHTML += "</table>\n</BLOCKQUOTE></BLOCKQUOTE>\n</body>\n</html>";
    parent.right.document.open(); // start of popup window parent.right.document.write(PicHTML); // writes html in the page parent.right.close(); // ends of popup window }

    ---------- No problems with the code - it works well.

    I have several java scripts in a folder called "Java" and references to the folders on my various pages.

    The above script refers to: var PicDir = "./pix/";

    I now have some additional photos in a folder called /chinaphotos. I can get the script to work with either folder but not with two of them.

    I am an amateur at this and the answer is probably obvious but I've spent hours trying to get it to work right with no success.

    Your help would be much appreciated.

    thanks,

    Answer:
    You should be able to use the following at the beginning of your function (just a small addition to what you are already using):

    function popupwin(Dir,ImageName,Desc,Date,Location) { var PicDir = Dir;

    then just place the dir name where you call the function, like this: popupwin("chinaphotos","pic1.jpg","this is my pic","June1","china")
    Thanks,

    -- Dr. Website

    Question:
    Dear Dr. Website:
    My company has designed a short Flash animation to run when a user enters our site, but we want the user to be redirected to another starting page if he/she does not have the Flash plugin installed. How can we detect if the incoming user has Flash? I've seen it done on other sites, so I know it's possible.

    Great Web site.
    Thanks!

    Answer:
    Here is a method you can use to detect the Flash plugin, and if they don't have it, to redirect them to a non-Flash page (and it doesn't even use JavaScript!)
    Thanks,

    -- Dr. Website


    Visit The Dr. Website® Archives.
    Click here for a list of Dr. Website's most frequently asked questions (and answers!).
    Send your own question to Dr. Website®.

-

Find it Fast
 
Site Map
How to...
reviews
FAQ
forums
free stuff
jobs
Top Utility Software Packages
news
Reference Library
Dr. Website's Top Questions
 
- -

Refresh Daily
 
Check here for other internet.com Developer Events, guaranteed to elicit a response one way or another.
 
- -

Dr. Website ® Dr. Website® has the prescription for your ailing HTML.

WebDeveloper News
Hear it in RealAudio!

-