Transitioning with Dynamic images

I am working on a project now where I will have to call a
sequece of jpeg images and I will need to be able to crossfade
IMAGE01 OUT and IMAGE02 IN....etc. I need to also focuse this
inside one movie clip that resides on the master.swf file that is
loading other content in addition to the image sequence. Anyone
have any idea how to do such a thing?
Thanks for the help (in advance)
Kyle

I have been able to resolve this. My problem with previous code was that it wasn't running at the right time during execution. Here's the fixed code:
This will properly load a BLOB object into an image.
-Mike

Similar Messages

  • How to create a menu in flex with dynamic images?

    I am using mx.controls.Menu but can't seem to find a way to add dynamic images to it...is there a way fo doing this? should I me using another control?

    place the images path in the xml file
    when the swf is loaded pass the path of the xml file and
    bind the source of menu images with the loaded xml
    If this post answers your question or helps. please mark it as such

  • Sever Newbie wants to try his hand with Dynamic Images

    First off, I am a new Flash8 user (less than 3 months).
    I've read a lot of posts on how to create a SWF using Dynamic
    Images, but to tell you the truth...I can't seem to figure it out.
    I'd like to recreate the following SWF using my own data as
    this particular link <
    http://www.respectsoft.com/weatherclock/get-weather.php>
    is not always reliable.
    I've read that you must convert each image into a movie and
    then load that movie using the loadmovie. I can PROBABLY figure
    that part out, but I've tried creating a FLA and inserting a MOVIE
    image but nothing happens.
    Like I said, I am about as green as they come, but we all
    have to start somewhere.
    Any tips / help / links would be GREATLY appreciated.
    Ken

    Hi Lon,
    I tried your suggestion, but it only works locally. When I
    try it out on the Web, it doesn't work. I believe the reason why is
    that I am trying to load a SWF from another website. Since SWF's
    can't execute calls necessary to build the dynamic images...nothing
    appears.
    Is there a way around this?
    Thanks again,
    Ken
    I load the following into a local SWF called "weather.swf" on
    my website.
    var myClip_mc:MovieClip =
    this.createEmptyMovieClip("myClip_mc", this.getNextHighestDepth());
    myClip_mc.loadMovie("
    http://www.respectsoft.com/weatherclock/forecast.swf");
    myClip_mc._x = 100;
    myClip_mc._y = 100;
    In the HTML of my webpage I have
    <p align="center"><embed title="What will the
    weather be for your visit?" src="/Public/weather.swf"
    quality="high" wmode="transparent" bgcolor="#CC00CC" width="400"
    height="170" align="middle" type="application/x-shockwave-flash"
    pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    /><br>
    </p>

  • Thumbnail with dynamic images

    I'm trying to create a thumbnail object for an HLIST, the
    data for the thumbnail is a bytearray containing an image in PNG
    format. The data comes from a database in an AMF object via FDS. I
    can see the data in the debugger, and it is not null, but I'm not
    sure what to do with it now that I have it. (ie, how to turn it
    into an image that I can display) Any help would be greatly
    appreciated.
    Thanks.

    So I've found something that "works", but I no longer get
    mouseover highlights or the ability to click the items. I'll post
    what I've got, and any suggestions/criticisms would be appreciated.
    Thanks
    ps, sorry I couldn't get the indenting to work properly
    public class ThumbRenderer extends Image {
    public var thumbLoader:Loader;
    // Define the constructor and set properties.
    public function ThumbRenderer() {
    //trace("thumbrenderer created");
    height=140;
    width=140;
    setStyle("borderStyle", "none");
    thumbLoader = new Loader();
    thumbLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    completeHandler);
    override public function set data(value:Object):void {
    //trace("thumbrenderer set data");
    if(this.numChildren > 0)
    this.removeChildAt(0);
    var myData:ByteArray = File(value).imageData;
    thumbLoader.loadBytes(myData);
    private function completeHandler(event:Event):void {
    trace("completeHandler: " + event);
    //super.data = thumbLoader;
    addChild(thumbLoader);
    super.invalidateDisplayList();
    super.invalidateProperties();
    super.invalidateSize();

  • Dynamic Images in Crystal Reports

    I have a report with Dynamic Images. I am able to run the report but once I try to export it or try to browse through the pages I get the following error:
    Application popup: Crystal Reports - [Inventory Graphics Report.rpt]: crw32.exe - Application Error : The exception Integer division by zero.
    (0xc0000094) occurred in the application at location 0x2c03a410.

    Hi Don,
    I have read your response 10 times, but I don't really understand it.
    "Your only option is to use the Insert OLE Object or picture into the report" - fine, but how is this achieved from a dataset?
    "CR will not display BLOB fields as pictures" - fine, but maybe I used the word BLOB badly. The dataset column datatype is "byte[]". Will CR display byte[] columns as pictures?
    "You can use a database field to point to which picture file to use, then you won't be using up valuable memory space importing the images into your data set. And the Logo's now dynamic...." - this seems to suggest that the database field is a string storing the file location on disk. Yes? I don't care about memory space in this case and I'm happy to load a binary file into a byte[] column if there is a way of displaying it.
    So, if I understand correctly, you're suggesting the dataset contain a table.row.column which stores the filelocation. How do I convert that to display as a picture (dynamically)?
    Robert

  • Dynamic Image Gallery Issue

    Hello All!
    I am creating a dynamic image gallery, but when my external
    images load in the empty movie clip, all the images are loading in
    the same size/dimension. Does anyone know how I can command the MC
    to load the images in different sizes, another words - to load them
    according to its own size?
    here's the AS
    onClipEvent (load)
    function imageMove()
    var _loc1 = this;
    for (i = 1; i <= num_of_image; i++)
    mc = _loc1["image" + i];
    if (i < hit)
    tempx = small * (i - 1) + 30;
    temps = small - 5;
    mc.useHandCursor = true;
    else if (i > hit)
    tempx = big + small * (i - 2) + 30;
    temps = small - 5;
    mc.useHandCursor = true;
    else
    tempx = small * (i - 1) + 150; //distance of how far out the
    displayed image jumps.
    temps = big - 5; //distance between the displayed image and
    thumbnails.
    mc.swapDepths(1000);
    display = txt
    mc.useHandCursor = false;
    } // end else if
    mc._x = mc._x + (tempx - mc._x) / 3; //number of pixals on
    x-axis the displayed image moves over to right side before growing
    big.
    mc._width = mc._width + (temps - mc._width) / 3; //number of
    pixals on x-axis the displayed image moves over to left side before
    growing big.
    mc._height = mc._width * 4 / 3;
    if (Math.abs(mc._width - temps) <= 1)
    title._x = hit < 5 ? (_loc1["image" + hit]._x + big / 2) :
    (_loc1["image" + hit]._x - big / 2 - 100);
    title._y = 100;
    } // end if
    } // end of for
    } // End of the function
    function loopHye()
    if (hit != num_of_image)
    ++_global.hit;
    else
    _global.hit = 1;
    } // end else if
    } // End of the function
    getURL("FSCommand:allowscale", false);
    big = 300;
    //Large image width (400 works best for my portfolio site)
    small = 60;//Small image width (40 works well for my
    portfolio site)
    num_of_image = 8;//Total number of images
    timeGap = none;//Speed (speed of gaptime when each image is
    displayed automatically. "2000" is default of this original file.
    larger the number the slower the image changes. (type in "none"
    will stop automatic images from changing.
    _global.hit = 0;//First displyed image number (type "0" to
    stop images from growing out)
    txt = [" ", "image1", "image2", "image3", "image4", "image5",
    "image6", "image7", "image8"];//insert text of each images between
    for (i = 1; i <= num_of_image; i++)
    attachMovie("image", "image" + i, i);
    loadMovie("image/" + i + ".jpg", this["image" +
    i].tar);//image folder path
    mc = this["image" + i];
    mc._x = small * (i - 1) + 30;
    mc._y = 200; //where on the axis should the displays be.
    mc._width = small - 5;
    mc._height = mc._width * 4 / 3;
    this["image" + i].onRelease = function ()
    clearInterval(interval);
    _global.hit = this._name.substr(5);
    interval = setInterval(loopHye, timeGap);
    } // end of for
    interval = setInterval(loopHye, timeGap);
    onClipEvent (enterFrame)
    imageMove();
    check out the file
    http://www.wendiland.com/Gallery122b.fla
    this is what the current gallery looks like
    http://www.wendiland.com/print2.html
    I'd appreciated if someone replies with any sort of
    suggestions! thanks in advance!!!
    - W£NDI

    if you google with "dynamic image gallery", you'll find a lot
    of
    tutorials & examples including pre-programmed solutions
    if you prefer to do it yourself, you need to deal with
    dynamic sites. DW
    help chapters Preparing to Build Dynamic Sites, Making Pages
    Dynamic &
    Developing Applications Rapidly can also help to understand
    in fact you don't need a database, the images can be read
    from the
    folder they're stored. that way to update a gallery you only
    need to
    remove/replace/add images. one folder for each gallery
    and the application development forum is best suited for your
    question
    BTW, some nice photos in your page
    hth,
    jdoe
    uvi wrote:
    > I'm trying to create a dynamic image gallery that is
    updated from a database, i
    > managed to create a simple mysql database
    > using phpmy admin, so I could update my image gallery
    more often, I saw
    > something that I like but I have no idea how to create
    it here is the example:
    >
    http://flight001.com/store/trip.htm?itemid=307&sid=201&page=2
    > I didnt manage to create this with dynamic table from
    within dreamweaver 8,
    > maybe I just don't know how,
    > this is the link to a gallery on my website:
    >
    http://www.yuvallavy.com/work/scenic/scenic.htm.
    I need all the help I can get
    > I'm using dreamweaver 8 on a Mac and using PHP/MySql
    server model.
    >

  • Dynamic Image Location in JRC

    <p>Hi !</p><p> </p><p>We are interested in using so called dynamic image location future in JRC. So far we are unsucessful, so the question is, is it supported in JRC ? We are able to get dynamic image location future working in report designer, but when our report is exported there is no image only path to it. </p><p> </p><p>We use Crystal Reports 11 R2, Java Reporting Component in JSP version.</p><br /><p>Mac</p>

    I have a couple of reports working with dynamic images. CR4E doesn't support this (yet?!?), but you can still do it with the JRC. The big kicker is the syntax of your URL. If you're using a static image on a server somewhere, it should work with no problem. However, if you're using a generated image, it's a little trickier. I discovered this when I was creating a report with barcode labels. The barcodes were not getting generated. I turned on debugging and found that the JRC was screwing up my url. The url was as follows http://myserver/barcode?message=12345 67890&format=datamatrix.
    In the logs, the JRC said it couldn't find an image at the url
    http://myserver/barcodemessage=12345+67890&format=datamatrix. It was stripping out the ? in the url, which is kind of an important character to say the least. I messed around with it and eventually found that if I just put ?? instead of ?, the image would display correctly with the JRC. Hope this helps! If not, post what version of the JRC you're using and the URL you're using for the image location.

  • Dynamic Image issue using the SDK CrystalReportViewer in a Web Farm

    Hello,
    Well it's the classic dyanamic Red X image problem with a twist. We have the CrystalReportViewer control coded into an ASPX web page using the BOE XI R2 SDK.
    The problem is everything works fine (after all the usual Red X image fixes) when only one of the servers in the farm are running. It's when two are running, by using Process Monitor, I can tell NetScaler is splitting up the HTTP calls so one server may have the temp image created and of course the other one doesn't.
    Therefore, if you're lucky enough for one server to handle most of the load, image comes up fine. Otherwise, the report renders, but you get Red X for the image.
    I have seen an article about a registry key (CrystalImageDir) that allows you to enter a network share as the temp folder. The problem is, we are using Windows Integrated Authentication for the intranet site so you're faced the two hop authentication hurtle, leading to access denied on the UNC network path.
    Anyone using the SDK in a .NET application using multiple web front end servers?
    Thanks!
    Horus

    By the way, I'm hearing that NetScaler can handle sticky sessions. However, since a report with dynamic images is really a GET request for the report, then a bunch of sub-GETs to grab the images, what URL would you set the sticky session for?
    For example, if the web page containing the CrystalReportsViewer was:
    https://coolapplication.mycompany.com/Site100/ReportApp/ViewReport.aspx
    Then report the viewer would contain links to something like:
    https://coolapplication.mycompany.com/Site100/ReportApp/CrystalImageHandler.aspx?dynamicimage=cr_tmp_image_5671d67a-4f5d-4ab1-b3c8-0d2561ee64f3.png
    So which URL/page gets load balanced? Or is that not how LB works?
    Thanks!
    Horus

  • Dynamic image load with MovieClipLoader

    I'm trying to load five images from five URLs. If I use the
    documentation exactly as is, it works fine. Problem is, I don't
    want to createEmptyMovieClip, I want to use an existing one that's
    tucked inside a movie instance. Also, the images coming in are of
    unknown size, but have a standard 4:3 size ratio. I'd also like to
    scale them down to 180x120 after they arrive. Any help would be
    greatly appreciated.
    The code below only loads one image (which isn't working). I
    will eventually need it to load five different images.

    Dynamic text that doesn't have embedded fonts won't respond
    to tweening, alpha, etc. So you need to embed the font(s). There
    are a couple of ways to do this depending upon what you are doing.
    But most likely you can just select the text field and click the
    font button on the properties panel and select embed. Also I would
    recommend that you use _visible=false instead of alpha for this
    effect.
    I'm not sure what the second go-round is. Can you explain
    that a bit better? You should be able to use the same loader, so
    I'm not quite sure what is going on. Again, look for some helpful
    places to put some traces and see if you can figure out what is
    going on. Remember that generally Flash does what we tell it, not
    what we want! So if you can find the places where you are telling
    it to do things you can figure out what is happening.
    Also I'm not clear on what is going on with the variables and
    text. Generally I would recommend against using the variable
    property of text fields. That is a leftover from the Flash 5 days
    when you couldn't work directly with dynamic text fields. Instead
    give the fields instance names and then assign the text with the
    text property.
    myTextField.text="some value in here";
    myTextField2.text=someStringVariable;

  • How can I use wget, cron and Automator to periodically pull a dynamic image from a URL to local storage, and then update a Keynote slide with that image, automatically?

    How can I use wget, cron and Automator to periodically pull an image from a URL (which is dynamically updated - like a weather map, say - to local storage, and then update a Keynote slide with that image, automatically?

    Any particular reason for those specific technologies?  wget does not exist on a mac, although you can nstall it I guess.  OS X has curl installed which should do pretty much anything you want to do with wget.  cron is being replaced by launchd, although cron still exists on mountain lion.
    As far as I can tell from automator all the standard 'actions' to access keynote  available to it require keynote to be open and running, but does not provide a function to actually open it.  So I think you will have to write some applescript, as a minimum to open and quit keynote. I notice that the keynote actions are mostly circa 2005 an wonder if they would even work.
    Under utilities in automator 'actions' there is a capability to add applescripts as part of the workflow.
    Also, note that cron is being dprecated by Apple and replaced by launchd.  that said cron is stil on my mountain lion instalation.
    This entry at stackoverflow shows use of cron with curl to get web urls.  http://stackoverflow.com/questions/1683620/getting-started-with-cronjobs-on-a-ma c
    If I have any time I may try and get this to work as it is quite interesting and new to me.  But otherwise, good luck.

  • Creating a SSRS report with dynamic overlapping images

    I have to create a report with the following requirement:
    1: The first page has some hi-res images of 8 different geometric shapes with text in it. The location of the images on the page will be static, however the fill color of image can be either green or grey.E.g. one box can be green for one user , for other it
    can be grey etc.
    2: Export the report in excel,pdf and word
    I am planning to use SSRS for this.
    I am planning to create the report with superimposed images, e.g. green palette shape and grey palette shape superimposed on each other .Depending on the selection made by the user, I want to "Send to Back" or "Bring to Front." Can I change
    the "Send to Back" or "Bring to Front" properties at runtime depending on parameters passed to the report?
    Also, I want the image path to be configurable, so that when business wants to change the text or color of the image, I do not need to redeploy the code. I can just change the image.
    how can I create the RDL such that the images are at the proper positions? DO I need to insert a tablix for proper positioning of the image?
    Any suggestions?

    Hi RachanaD,
    As far as I know, overlapping of item does not work in the soft-break renderers like HTML, Word and Excel. However, it is work in hard-break renderers like PDF or TIFF.
    In your case, we can insert text box in rectangle to work around the issue. We can insert an image in rectangle and another image insert in a text box. Then, put the text box in the rectangle.
    In SSRS, we cannot use parameter to control the location of image. However, we can use go to report action to work around the issue. Please refer to the steps below:
    Create two similar report, the difference between two reports is the location of these image.
    In the first report, add a text box fill with “Send to Back”.
    Add action “go to report” of the text box go to the second report.
    In the second report, add a text box fill with “Bring to Front”.
    Add action “go to report” of the text box go to the first report.
    Hope this helps.
    Regards,
    Alisa Tang
    If you have any feedback on our support, please click
    here.
    Alisa Tang
    TechNet Community Support

  • Dynamic image gallery on detail page

    I have a master page listing 8 products. I have inserted a dynamic image gallery on the detail page which looks ok, but has one major flaw: when you click on a thumbnail the main image opens on the wrong page. e.g. if you click on page ../dragons.php?id=3 the main image opens on  ../dragons.php/id=1 and shows the following url: .../dragons.php?image=btf.jpg (or whatever the image file name).
    I have only just started using php and I would appreciate some guidance on how to resolve this problem.
    The relevant sections of the code are as follows?
    $vardragon_dragons_species = "1";
    if (isset($_GET['id'])) {
      $vardragon_dragons_species = $_GET['id'];
    mysql_select_db($database_cjwebsite, $cjwebsite);
    $query_dragons_species = sprintf("SELECT dragons.Order, dragons.family, dragons.Latin, dragons.English, dragons.Img1, dragons.Img2, dragons.Img3, dragons.img4, dragons.Img5, dragons.text, `dragons gallery`.filename, `dragons gallery`.caption, dragons.id, `dragons gallery`.image_id, dragons.id FROM dragons, `dragons gallery` WHERE dragons.id = `dragons gallery`.image_id AND dragons.id=%s", GetSQLValueString($vardragon_dragons_species, "int"));
    $dragons_species = mysql_query($query_dragons_species, $cjwebsite) or die(mysql_error());
    $row_dragons_species = mysql_fetch_assoc($dragons_species);
    $totalRows_dragons_species = mysql_num_rows($dragons_species);
    if (isset($_GET['image'])) {
      $mainImage = $_GET['image'];
    else {
      $mainImage = $row_dragons_species['filename']; }
    <body>
      <div class="main_image"><img src="../images/dragons/<?php echo $mainImage; ?>" alt="<?php echo $row_dragons_species['caption']; ?>" />
      <div class="capt"><?php echo $row_dragons_species['caption']; ?></div>
    <ul class="gallery">
            <?php do {
          if ($row_dragons_species['filename'] == $mainImage) {
                     $row_dragons_species['caption'];
                   }?>
      <li><a href="<?php echo $_SERVER['PHP_SELF'];?>?image=<?php echo $row_dragons_species['filename']; ?>"><img src="../images/dragons/thumbs/<?php echo $row_dragons_species['filename']; ?>" alt="<?php echo $row_dragons_species['caption']; ?>"  /></a></li>
      <?php } while ($row_dragons_species = mysql_fetch_assoc($dragons_species)); ?>
      </ul>
    Many thanks
    CJ 

    I'm still at an early stage in building this site and because it is allvery experimental I am and just using local testing.
    So to try to explain my objective. I have a master page with 8 products  there is a link to a detail page based on product id. So from the master page (dragons.php) you can select a product which will show the product information on a detail page (eg. dragons_species.php?id=1 or dragons_species.php?id=2 etc). This works ok.
    Each detail page has various pieces of information and 5 images. I wanted to show the images in an image gallery format and so used the code you provide in your book PHP Solutions (Creating a Dynamic Online Gallery pp.323-330). This works ok on the first page where id=1, but on subsequent pages (id=2, id=3 etc) I am loosing the id link infavour of an image based link.
    This is the complete script for my detail page (dragons_species.php)
    <?php require_once('../Connections/cjwebsite.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $vardragon_dragons_species = "1";
    if (isset($_GET['id'])) {
      $vardragon_dragons_species = $_GET['id'];
    mysql_select_db($database_cjwebsite, $cjwebsite);
    $query_dragons_species = sprintf("SELECT dragons.Order, dragons.family, dragons.Latin, dragons.English, dragons.Img1, dragons.Img2, dragons.Img3, dragons.img4, dragons.Img5, dragons.text, `dragons gallery`.filename, `dragons gallery`.caption, dragons.id, `dragons gallery`.image_id, dragons.id FROM dragons, `dragons gallery` WHERE dragons.id = `dragons gallery`.image_id AND dragons.id=%s", GetSQLValueString($vardragon_dragons_species, "int"));
    $dragons_species = mysql_query($query_dragons_species, $cjwebsite) or die(mysql_error());
    $row_dragons_species = mysql_fetch_assoc($dragons_species);
    $totalRows_dragons_species = mysql_num_rows($dragons_species);
    if (isset($_GET['image'])) {
      $mainImage = $_GET['image'];
    else {
      $mainImage = $row_dragons_species['filename']; }
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Odonata Species</title>
    <link href="../Css/dragons.css" rel="stylesheet" type="text/css" />
    <link href="../Css/menu.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div id="header">
      <?php include('../Includes/logo2.inc.php'); ?>
    </div>
    <div id="content"> <div id="title">
      <h1>Damselflies &amp; Dragonflies</h1>
    </div>
    <div class="family")><?php echo $row_dragons_species['Order']; ?></div>
    <div class="subfamily">
      <?php echo $row_dragons_species['family']; ?>
      <div class="main_image"><img src="../images/dragons/<?php echo $mainImage; ?>"   alt="<?php echo $row_dragons_species['caption']; ?>" />
       <div class="capt"><?php echo $row_dragons_species['caption']; ?></div></div></  
       <div class="description">
        <div class="text" id="name"><?php echo $row_dragons_species['Latin']; ?></div>
        <div  id="vernname"><?php echo $row_dragons_species['English']; ?></div>
      <?php echo $row_dragons_species['text']; ?></div>
    <ul class="gallery">
            <?php do {
                      if ($row_dragons_species['filename'] == $mainImage) {
                     $row_dragons_species['caption'];
                   }?>
    <li><a href="<?php echo $_SERVER['PHP_SELF'];?>?image=<?php echo $row_dragons_species['filename']; ?>"><img src="../images/dragons/thumbs/<?php echo $row_dragons_species['filename']; ?>" alt="<?php echo $row_dragons_species['caption']; ?>"  /></a></li>
      <?php } while ($row_dragons_species = mysql_fetch_assoc($dragons_species)); ?>
      </ul>
      <div id="footer">
        <?php include('../includes/footer.inc.php'); ?>
    </div></div>
    </div>
    </body>
    </html>
    <?php
    mysql_free_result($dragons_species);
    ?>
    The code for my master page dragons.php is as follows
    <?php require_once('../Connections/cjwebsite.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    mysql_select_db($database_cjwebsite, $cjwebsite);
    $query_dragons_species = "SELECT id, Latin, English, Thumbs FROM dragons";
    $dragons_species = mysql_query($query_dragons_species, $cjwebsite) or die(mysql_error());
    $row_dragons_species = mysql_fetch_assoc($dragons_species);
    $totalRows_dragons_species = mysql_num_rows($dragons_species);mysql_select_db($database_cjwebsite, $cjwebsite);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Odonata</title>
    <link href="../Css/menu.css" rel="stylesheet" type="text/css" />
    <link href="../Css/dragons.css" rel="stylesheet" type="text/css" />
    <body>
    <div id="header">
    <?php include('../Includes/logo2.inc.php'); ?></div>
    <div id="content"> <div id="title">
    <h1>Damselflies</a> & Dragonflies</h1>
    <div id="sidebar">
    <?php include('../Includes/menu2.inc.php'); ?>
    <div id="text">
    <h2>ODONATA</h2>
        </h2>
      <p>Ten species have been recorded on the islands, of which seven are common and widely distributed. The Golden-ringed Dragonfly and the Emerald Damselfly are both very scarce, whilst the record of the Azure-winged Dragonfly on Lewis is unconfirmed.   
           <?php do { ?>
        <div class="speciesbox"><a href="Dragons_species.php?id=<?php echo $row_dragons_species['id']; ?>"><img src="../images/dragons/thumbs/<?php echo $row_dragons_species['Thumbs']; ?>" /></a>
            <div class="latin"><a href="Dragons_species.php?id=<?php echo $row_dragons_species['id']; ?>"><?php echo $row_dragons_species['Latin']; ?></a>
              <div class="english"><a href="Dragons_species.php?id=<?php echo $row_dragons_species['id']; ?>"><?php echo $row_dragons_species['English']; ?></a> </div>
        </div></div>
      <?php } while ($row_dragons_species = mysql_fetch_assoc($dragons_species)); ?> </div>
    <div id="footer">
        <?php include('../includes/footer.inc.php'); ?>
    </div>
    </body>
    </html>
    <?php
    mysql_free_result($dragons_species);
    ?>
    Does this shed any light?
    Many thanks
    CJ.

  • Dynamic images show in "Live View", however not in browser

    I'm doing the CS5.5 Missing Manual Dynamic Website tutorial and have had no issues until I want to display an image for the online store.  When I click on Live View, everything looks great.  However when I want to preview in a browser, I only see the alt text with no image showing.  What on earth could be going on?  Any help would be greatly appreciated.
    Here is the code (image code is in bold)
    <?php require_once('Connections/dbCosmos.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $varProduct_rsDetails = "1";
    if (isset($_GET["productID"])) {
      $varProduct_rsDetails = $_GET["productID"];
    mysql_select_db($database_dbCosmos, $dbCosmos);
    $query_rsDetails = sprintf("SELECT products.productID, products.productName, products.price, products.`description`, products.inventory, products.image, vendors.vendorName FROM products, vendors WHERE products.vendorID=vendors.vendorID AND products.productID=%s", GetSQLValueString($varProduct_rsDetails, "int"));
    $rsDetails = mysql_query($query_rsDetails, $dbCosmos) or die(mysql_error());
    $row_rsDetails = mysql_fetch_assoc($rsDetails);
    $totalRows_rsDetails = mysql_num_rows($rsDetails);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>The CosmoFarmer Store</title>
    <link href="styles/global.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <link href="styles/twoColFixLtHdr.css" rel="stylesheet" type="text/css" />
    </head>
    <body class="twoColFixLtHdr">
      <div id="mainContent">
      <p><?php echo $row_rsDetails['productName']; ?></p>
      <p>Price: <?php echo $row_rsDetails['price']; ?></p>
      <p>Vendor: <?php echo $row_rsDetails['vendorName']; ?></p>
      <p>Inventory: <?php echo $row_rsDetails['inventory']; ?></p>
      <p><img src="images/large/<?php echo $row_rsDetails['image']; ?>" alt="<?php echo $row_rsDetails['productName']; ?>" class="productImage" /><?php echo $row_rsDetails['description']; ?></p>
      </div>

    Please read these -
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_13129&sliceId=2
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15546&sliceId=2
    so that you understand root relative and document relative
    links.
    Your root relative links will work if you enable Preview in
    Browser > Use
    temp files to preview, in your PREFERENCES.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Scylibs1" <[email protected]> wrote in
    message
    news:fltebc$r12$[email protected]..
    > Hello. Can someone explain to me why this is an issue.
    >
    > When I add an image from Dreamweaver using the INSERT
    > IMAGE method, it
    > will
    > add the path as follow :
    >
    > /myfolder/myimage.gif
    >
    > The problem I have is with the first " / ". In my
    browser, that will not
    > work.
    > In other words, the correct path would be
    >
    > myfolder/myimage.gif
    >
    > but this path will not display in Dreamweaver... I am
    using dreamweaver mx
    > 2004 7.0.1
    >
    > I would like the image to be displayed in both my
    browser and dreamweaver
    > design mode.
    >
    > Thanks.
    >

  • Dynamic image in the template builder plug-in does not work

    Hi all,
    The documentation says:
    Direct Insertion
    Insert the jpg, gif, or png image directly in your template.
    +...This works obviously+
    URL Reference
    1. Insert a dummy image in your template.
    2. In Microsoft Word's Format Picture dialog box select the Web tab. Enter the following syntax in the Alternative text region to reference the image URL:
    url:{'http://image location'}
    For example, enter: url:{'http://www.oracle.com/images/ora_log.gif'}
    +...This works too when I hardcode an url as url:{'http://www.google.com.tr/images/firefox/mobiledownload.png'}+
    Element Reference from XML File
    1. Insert a dummy image in your template.
    2. In Microsoft Word's Format Picture dialog box select the Web tab. Enter the following syntax in the Alternative text region to reference the image URL:
    url:{IMAGE_LOCATION}
    where IMAGE_LOCATION is an element from your XML file that holds the full URL to the image.
    +...This, however, does not work.+
    I use Apex' report query tool and My query is like
    select 'http://www.google.com.tr/images/firefox/mobiledownload.png' IMAGE_LOCATION from ... (a single result set for my template)
    the xml data is generated with an IMAGE_LOCATION tag. I load it to word template plug-in. The Url successfully displays in the report if I make it a plain-simple field.
    But when it's in the image format->web->alt text as url:{IMAGE_LOCATION} no image displayed.
    I need to keep this design procedure simple so a simple word user could design a report via using just template builder plug-in. I don't wish to explore the xsl-fo area...yet.
    Could you tell me why I can't get this url:{IMAGE_LOCATION} to work?
    Regards
    PS: My BI version: 10.1.3.4.1
    Edited by: oeren on Jun 8, 2011 12:28 AM

    Oeren,
    I stumbled across this little tidbit buried in the BI Publisher forum: Dynamic Images in rtf
    Glad you are up and running!
    Joshua

  • How do get a dynamic image to open in new browser window

    I'm using DW CS3, mysql (MAMP)   OS 10.6.2   I'm designing my online store.  I need the customer to be able to click dynamic image/thumbnails to view a larger image in a new browser pop up window 400 x 400.  An example of this functionality can be seen at :
    http://www.designpublic.com/spot-on-square-roh-dresser
    So far I can get the separate new browser window to open with the dynamic image, using the open new browser behavior, but the on click also advances to next page with the larger image. You have to press the back button to get back to the product page.  I want the customer to be able to see the product page , while viewing larger image, and then close larger image, and still have the product page open. I don't understand why 2 windows are opening.
    Thanks for the help people!
    William

    Hi
    I did look at it but, (and this is only my opinion, I do not like such effects) it is your decision.
    If you view source you will see -
    <a href="#" onclick="popWin('http://www.designpublic.com/catalog/product/gallery/id/12706/image/91883/', 'gallery', 'width=300,height=300,left=50,top=50,location=no,status=yes,scrollbars=yes,resizable=yes'); return false;" title="Spot on Square Roh Dresser" class="gallery-image-link"><img src="http://arcsmedia01.s3.amazonaws.com/catalog/product/cache/2/thumbnail/56x56/5e06319eda06f020e43594a9c230972d/r/o/roh_dresser1.jpg" alt="" /></a>
    Which is controlled by the javascript function
    popWin()
    which you can view using the firefoxe dev toolbar - view javascript function.
    PZ

Maybe you are looking for

  • How can i recovery data from iPad2 after play find my phone app they all left

    after i go find my phone app then the map come i saw my iPad in the map and i don't know how to play this app then , i try to choose the last may be it appear erase something then i click on it the old data on my iPad2 was lost all i can't opened it

  • System requirements

    I can see in the system requirements that Flash Media Streaming Server can be installed on Linux® Red Hat® 4 (32-bit only). Now there is RHEL 5 available, is it also supported ? Are there additional configuration steps ?

  • Photo Ele. 2.0

        How do I get print language to be in english.  Uninstalled and reinstalled oki printer several times using english as language and when printing out of photoshop language set up is in spanish?

  • Erro in bursting ZIP file must have at least one entry

    Hi All , i am using bursting utility for xmlp report ,but getting the following error --Exception ZIP file must have at least one entry java.util.zip.ZipException: ZIP file must have at least one entry      at java.util.zip.ZipOutputStream.finish(Zip

  • Print preview missing from HP Photosmart 6520 e

    Hello, where is the print preview option for the HP Photosmart 6520?