Greybox image script, a worthy Lightbox alternative?

There are a gazillion varieties of the infamous Lightbox
script out there.
After studying them all, I found that the lightest and most
suitable for my
needs is the Greybox (
http://jquery.com/blog/2006/02/10/greybox-redux/)
The one problem with it, though, after one of the users fixed
the screen
centering problem down in the comments area, is that it seems
to only allow
one size element. It won't "hug" the element being overlayed
like most of
its peers do. It's a fixed size for all the elements on the
page.
How hard would it be to make the dimensions dynamic, and
adapt to the image
being loaded (or at least, give up an option to specify those
dimensions in
the anchor tag calling the script)?
(The code forcing the dimensions is in the header of the demo
as javascript)

Thanks Mylenium,
For your advice.
The artist doesn't like the Zoomify option because he is only interested in the whole image on display.  He's pushing me towards having the image in lightbox and ignoring the fact that some of the image might not make it on a smaller screen.
Hmmmmm...  I think I might go with it and be done.  Do you think my logic about the lightbox thing is OK?
1) I try to keep all images as small as possible looking for an acceptable size/quality ratio
2) You should not make users scroll uneccesarily
3) I think that it disrupts the flow of viewing a large image gallery in Lightbox.
Regards
Martin

Similar Messages

  • Importing Subtitles using Image Script

    I'm just about to make a project with seven different languages. It will have audio tracks as well as subtitle tracks.
    I've done subtitles in Encore 1.5 before using text with some success. For this production I need to import tif using an image script. I can get the script working, however once it's located the images to import it gives me an error message along the lines of
    "Sorry, an abnormal condition has been detected. Before quitting, you have one chance to save your project..."
    Note I get passed the Map Colours and Import Subtitles dialogue box. It is only when I click on this last stage that it goes bad.
    Any ideas. I kinda thought this was what the program was meant to do.
    - Geoff

    Turns out the problem I was having was due to memory. Needed to restart.
    Naartjie, not sure how to save subtitles with a background image. Encore seems to only want to work with three colours, one is the background colour, the colour of the text and the colour of the outline for the text. So unless you can make your background image from the two colours that remain on the screen - text colour and outline, I'm not sure how to do go about it.
    - Geoff

  • Image script doesn't use the correct host name

    Hello NG
    I created a ZCM Imaging script so that I got a prompt for the name of the
    workstation. Unfortunatelly the script doesn't work correct. I set as WSName
    following Name WS999
    After the Image was restored, the hostname was set to Company-SJCFNSG
    (example: Company = Novell) NOVELL-SJCFNSG
    What could be the cause of this problem?
    Here the script i used:
    IMGSVR=192.168.4.30
    while test ! $WSNAME; do
    echo -n -e "\n Please set NetBIOS Name and a accept with Enter: ";
    read WSNAME;
    done;
    if test $WSNAME; then
    zisedit Name=$WSNAME;
    fi
    img -rp MyImage1.zmg
    img -rp MyAddOn1.zmg
    img -rp MyAddOn2.zmg
    sleep 10
    Regards
    Ramon

    I did find the solution!
    In earlier Zenworks versions the wsname was set by "zisedit name=PCName01"
    now in ZCM10 and ZCM11 the variable did change so I had to modify it to
    zisedit Computername=PCName01
    if test $WSNAME; then
    zisedit ComputerName=$WSNAME;
    fi
    Regards
    Ramon
    "Ramon Lustrati" schrieb im Newsbeitrag
    news:C%zup.26$C%[email protected]..
    Hello NG
    I created a ZCM Imaging script so that I got a prompt for the name of the
    workstation. Unfortunatelly the script doesn't work correct. I set as WSName
    following Name WS999
    After the Image was restored, the hostname was set to Company-SJCFNSG
    (example: Company = Novell) NOVELL-SJCFNSG
    What could be the cause of this problem?
    Here the script i used:
    IMGSVR=192.168.4.30
    while test ! $WSNAME; do
    echo -n -e "\n Please set NetBIOS Name and a accept with Enter: ";
    read WSNAME;
    done;
    if test $WSNAME; then
    zisedit Name=$WSNAME;
    fi
    img -rp MyImage1.zmg
    img -rp MyAddOn1.zmg
    img -rp MyAddOn2.zmg
    sleep 10
    Regards
    Ramon

  • Problems applying preboot imaging script bundle w/ 11.3.2

    Hi all,
    Just wondering if its just me with these issues.
    I had our preboot imaging script bundle assigned to the Workstation folder within the ZCC, but since the update to 11.3.2 when attempting to apply the imaging script bundle to a device within the ZCC it throws an error saying that no imaging script bundle is assigned to the device. The only way to get around this issue has been for me to assign the preboot imaging script bundle to each device within our zone, not the folders they exist within.
    Another issue I've had is if I select more than one device within the ZCC the action option "apply assigned imaging bundle" is greyed out. If I only select one device I am able to use that option again.
    Can anyone else confirm if they're experiencing the same issues?
    We're running 3x SLES 11 primaries running 11.3.2, all with the imaging role (our imaging script load balances between the three).
    I've tried accessing the ZCC with Internet Explorer, Firefox and Chrome and they all experience the same issue above.
    Regards,
    Matt

    Originally Posted by Thomas Degenhardt
    Am 17.12.2014 um 02:16 schrieb xvastx:
    >
    > Hi all,
    >
    > Just wondering if its just me with these issues.
    >
    Hello Matt,
    we are having the same issues. Did you contact Novell and opened a SR?
    Regards,
    Thomas
    Hey Thomas,
    We're on an educational licence so, unfortunately, we don't have any SRs to play with. Hopefully Anders has sent the issue trough to Novell.
    Regards,
    Matt

  • Suggestions for simple random image script

    Would like to randomly display one of five new JPG banner each time page is loaded.
    Your experience would be appreciated.
    Thanks

    Since no one replied, I am posting solution I found.for future inquiries.
    Simple PHP Random Image Script
    This can be done in one line of text directly in your HTML and a collection of images.
    The first step is to gather together the images you wish to have randomly rotated.
    Change all of their file names to a numerical order, starting with the number 1.
        * 1.jpg
        * 2.jpg
        * 3.jpg
        * 4.jpg
    Be sure each image has the same extension (either all jpg, png, or gif),
    and that there are no gaps in the numbers.
    Also, place these images in their own folder to keep everything organized.
    Write the Code
    In the HTML of your page, insert the following code where you want an image to display:
    <img src="path/<?php echo rand(1,n);?>.jpg" alt="Random Image" />
    The “rand” operator will display a randomly generated number between 1 and ‘n’.
    Change ‘n’ to the total amount of pictures you have arranged numerically
    (or the highest numbered picture you have).
    In the example above I only have 4 pictures, therefor I would change it to: rand(1,4);

  • Resize Images script

    Dear all,
    Here is my new Resize Images script for everybody who wants it:
    http://www.kasyan.ho.com.ua/resize.html
    Any feedback is welcome.
    Kasyan

    I really don't know anythign about scripting but I remember that it is important to put the script in the following folder structure:
    Scripts-Scripts Panel-Version 4.0 Scripts
    I hope that will do it.
    From: [email protected]
    To: [email protected]
    Subject: Re: InDesign CS3 resize images 100% script
    Date: Fri, 11 Apr 2008 02:27:58 -0700
    A new message was posted by Chadi SAROUFIM in
    InDesign Scripting --
      InDesign CS3 resize images 100% script
    I have copied the above script and I am receiving the below error message. I would really appreciate if someone send the final working script since it is very usefull
    Error 25
    Error in line 2
    View/reply at
    InDesign CS3 resize images 100% script
    Replies by email are OK.
    Use the
    unsubscribe form to cancel your email subscription.
    More immediate than e-mail?
    Get instant access with Windows Live Messenger.

  • Perl Scripting -  Is it an alternative to shell scripting?

    Hi all,
    I am new to Oracle. I am trying to learn the basic concepts
    I read that PERL is a server side scripting language.
    I understand the purpose of shell scripts. I come across terms PERL shell scripts.
    I understand PERL interpreter comes with UNIX.
    1. So, is scripting using PERL an alternative to shell scripting? or
    Does it have a different purpose?
    2. If an alternative, then when would PERL scripting be better than shell scripting or vice versa ?
    3. If an alternative, can PERL be exclusively used replacing shell scripting or as mentioned in my 2nd question used based on the application.
    Your reply will be truly appreciated.
    Thanks!

    A hypothetical question: If a unix had PERL
    installation can I use it replacing the unix shell
    scripting for carrying out day to day DBA tasks? You
    mentioned it is not done that way but theoretically
    can it be done?
    Yes, if you are proficient with Perl, you can use perl to script DBA scripts. Perl is more powerful than shell script. So there's nothing Perl can't do that shell can, there are many things Perl can, regular shell can't.
    The limitation is some company has tight policy on installing non-default software on servers, especially production high security servers.
    If not for carrying out day to day DBA tasks using
    PERL scripting is there any other reason for why PERL
    may come installed or can be installed in a UNIX
    flavor?
    Like said, Perl has many useful functions and modules. With DBD/DBI module and string processing power (Regular Expression etc), Perl is very popular tool for dataloading scripts as well as phyton.
    Perl and Phyton are also heavy used for CGI application and much more.

  • Choose random image script

    I'm creating a small movie with a set of random images that all appear in the same spot (no horizontal or vertical movement). I want each image to appear onscreen for two seconds, then be replaced by another randomly-chosen image. There are 17 images in the set. Here is the script I'm using:
    on enterFrame
      channel=random(17)
      _movie.delay(2*60)
    on exitFrame
      go to the Frame
    end
    This script works well. However, because the population is small - only 17 - what happens when I run the script is that a little too often it randomly chooses the same image once, twice, sometimes up to five times in a row, which gives the effect that the movie is either stuck or not working properly. I would like to find out how to modify the script so that on exitFrame it chooses randomly any of the other 16 images but not the current image. At first I thought if the script read random(16) or random(17-1) that might work, but it doesn't.
    Any thoughts would be welcome.
    Dallas

    Hi Sean,
    This randomizing project of mine is becoming more complex than I first realized and I now have another question that I hope you might be able to help me with.
    The project breaks down into class, category, group and member. There are 9 classes (and perhaps a possibility in the future that further classes could be added). The structure and naming convention within each class is identical down to the member level. For example, Cat. 1 of Class 2 and Cat 1 of Class 7 both have the same names. Group 3 of Cat. 1 of Class 2 and Group 3 of Cat 1 of Class 6 both have the same names. However, the members of these groups do not have the same names.
    In each class there are 4 categories, each with a different name. Each category contains a number of groups (each group has a different name). Each group contains a number of members. Each member in categories 1 and 2 is a bitmap image. The total number of bitmap members in the project is 21.
    To give a fictionalized example (this project is not about clothing, but I'm using it as an example):
    Class 1 = shirts
    Class 2 = hats
    Class 3 = pants
    Class 4 = socks
    Class 5 = shoes
    etc.
    Category 1 = British
    Category 2 = Japanese
    Category 3 = Turkish
    Category 4 = Brazilian
    Group 1 = Cotton
    Group 2 = Synthetic
    Group 3 = Speed
    Group 4 = Sound
    and so forth.
    In Class 1 (shirts) there are British, Japanese, Turkish and Brazilian shirts and these could be made of either cotton or synthetic. In addition, there are a variety of speeds and sounds from which to choose when displaying the shirts.
    In my project:
    Cat. 1 has 7 groups and each group varies in the number of members with either 7, 14 or 21 (but no other alternative to these numbers).
    Cat. 2 has 13 groups and each group has 7 members.
    Cat. 3 does not randomize images but lets me choose any one of 12 different speeds for randomization in half-second increments.
    Cat. 4 does not randomize images but lets me choose any one of 6 different sounds. Whenever the randomized image changes, this triggers the sound. The sound is not randomized but is consistent once the choice for what KIND of sound has been made. In short: tick, tick,tick, or tock, tock, tock but not tick, tock. It is possible that in the future more sounds could be added.
    Navigation should allow me to start with any of the four categories. For randomization to work, I must choose within either Cat. 1 or Cat. 2 (but not both) and I must make a choice of some sort within Cat. 3 (speed of randomization) while Cat. 4 is entirely optional (sound on or off, but not required to be on and, if it's to be on then choice for which kind of sound).
    There are also an additional two buttons for sound on or off than run the length of the score within any class, meaning that while randomization is occuring anywhere within a class, I can choose to turn the sound on if it's currently off or off if it's currently on. Turning it on while randomization is taking place will also probably require a choice of which kind of sound (meaning a floating window I suppose) so as not to exit the frame where randomization is taking place.
    Now for my question: should I create one massive behaviour script for all classes that includes a series of nested if/else statements for each category, group and member, or should I create 4 large behavior scripts, one for each category with if/else instructions for its groups and members, or should I script at the group level, which will result in 180 separate behaviour scripts for image randomization plus additional scripts for speed and sound?
    Further, I understand how to apply at the group level the script you gave me earlier (and it works beautifully), but if you think it would be more efficient now to work at the category or class level, I'm not sure how to script the if/else statements. I'm assuming that in whichever of these solutions turns out to be best, it is applied to a single sprite which will serve to display the randomly-chosen image. Bear in mind that the script you gave me randomizes the image change every two seconds. Now I'm looking to have a choice of it changing within a range of once every half-second to once every 5 seconds (e.g. 0.5 sceonds, 1 second, 1.5 seconds, 2 seconds, etc.).
    An ancillary question: could this be done a different way? A friend suggested using subroutines but wasn't able to tell me how to do this because he doesn't know anything about Lingo. I was wondering whether the if/then syntax structure is Lingo's way of doing subroutines.
    Your thoughts would be most welcome. If you think you can't help me with this, do you have any suggestions as to where I might turn for help (apart from the nuthouse at this point)?
    Cheers,
    Dallas

  • Can you click on an open Lightbox image to close the Lightbox?

    Does anyone out there know about the "work-around" so that when you click an open Lightbox image, the Lightbox will close?
    I can get the Lightbox image to close when I click outside the Lightbox image, but can't figure out a way to close it when I click on the Lightbox image.
    Any help is greatly appreciated.

    Thickbox is a form of Lightbox.
    The link is to the download and description page which clearly points out that Thickbox allows viewers to close the image by clicking anywhere inside or out of the image when it's displayed. (Which I believe is what you originally asked when the thread was started)
    I wasn't trying to be smart-assed or cryptic.
    That's why I posted it in 20 point type. It was my intention that you'd see it as a link and follow it for more information.
    Since I obviously got it wrong, here's the info:
    ThickBox is a webpage UI dialog widget written in  JavaScript on top of the jQuery library. Its function is to show a single image, multiple images, inline  content, iframed content, or content served through AJAX in a hybrid modal.
    Overview
    Examples
    Q & A
    Support
    Donate
    Overview-
    Features:
    ThickBox was built using the super lightweight jQuery library. Compressed, the jQuery  library is 20k, uncompressed it's 58k.
    The ThickBox JavaScript code and CSS file only add an additional  15k (only 10k by using the thickbox-compressed.js) on top of the jQuery  code. The CSS file could additionally be compressed if need be.
    ThickBox will resize images that are bigger than the browser  window.
    ThickBox offers versatility (images, iframed content, inline  content, and AJAX content).
    ThickBox will hide form elements in Windows IE 6.
    ThickBox will remain centered in the window even when the user  scrolls the page or changes the size of the browser window.  Clicking an  image, the overlay, or close link will remove ThickBox.
    Due to the ThickBox creator's view that transitions should be  tailored by individual authors, ThickBox windows do not implement fancy  transitions.  Feel free to add them as you see fit. Is this a feature?  Well, some might say it is.
    ThickBox can be invoked from a link element, input element  (typically a button), and the area element (image maps).
    Download
    code
    css
    gif
    compressed  code
    Download thickbox.js or thickbox-compressed.js,  ThickBox.css,  and the loading graphic (loadingAnimation.gif)  to your local machine (or cut and paste the code from the tabs). Along  with these three files, a copy of the jQuery JavaScript library is needed. For this site, and ThickBox, I am using the compressed version of  jQuery.
    * Thickbox 3.1 - One Box To Rule Them All.
    * By Cody Lindley (http://www.codylindley.com)
    * Copyright (c) 2007 cody lindley
    * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
    var tb_pathToImage = "images/loadingAnimation.gif";
    /*!!!!!!!!!!!!!!!!! edit below this line at your own risk !!!!!!!!!!!!!!!!!!!!!!!*/
    //on page load call tb_init
    $(document).ready(function(){  
      tb_init('a.thickbox, area.thickbox, input.thickbox');//pass where to apply thickbox
      imgLoader = new Image();// preload image
      imgLoader.src = tb_pathToImage;
    //add thickbox to href & area elements that have a class of .thickbox
    function tb_init(domChunk){
      $(domChunk).click(function(){
      var t = this.title || this.name || null;
      var a = this.href || this.alt;
      var g = this.rel || false;
      tb_show(t,a,g);
      this.blur();
      return false;
    function tb_show(caption, url, imageGroup) {//function called when the user clicks on a thickbox link
      try {
        if (typeof document.body.style.maxHeight === "undefined") {//if IE 6
          $("body","html").css({height: "100%", width: "100%"});
          $("html").css("overflow","hidden");
          if (document.getElementById("TB_HideSelect") === null) {//iframe to hide select elements in ie6
            $("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");
            $("#TB_overlay").click(tb_remove);
        }else{//all others
          if(document.getElementById("TB_overlay") === null){
            $("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>");
            $("#TB_overlay").click(tb_remove);
        if(tb_detectMacXFF()){
          $("#TB_overlay").addClass("TB_overlayMacFFBGHack");//use png overlay so hide flash
        }else{
          $("#TB_overlay").addClass("TB_overlayBG");//use background and opacity
        if(caption===null){caption="";}
        $("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");//add loader to the page
        $('#TB_load').show();//show loader
        var baseURL;
         if(url.indexOf("?")!==-1){ //ff there is a query string involved
          baseURL = url.substr(0, url.indexOf("?"));
         }else{
             baseURL = url;
         var urlString = /\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/;
         var urlType = baseURL.toLowerCase().match(urlString);
        if(urlType == '.jpg' || urlType == '.jpeg' || urlType == '.png' || urlType == '.gif' || urlType == '.bmp'){//code to show images
          TB_PrevCaption = "";
          TB_PrevURL = "";
          TB_PrevHTML = "";
          TB_NextCaption = "";
          TB_NextURL = "";
          TB_NextHTML = "";
          TB_imageCount = "";
          TB_FoundURL = false;
          if(imageGroup){
            TB_TempArray = $("a[@rel="+imageGroup+"]").get();
            for (TB_Counter = 0; ((TB_Counter < TB_TempArray.length) && (TB_NextHTML === "")); TB_Counter++) {
              var urlTypeTemp = TB_TempArray[TB_Counter].href.toLowerCase().match(urlString);
                if (!(TB_TempArray[TB_Counter].href == url)) {           
                  if (TB_FoundURL) {
                    TB_NextCaption = TB_TempArray[TB_Counter].title;
                    TB_NextURL = TB_TempArray[TB_Counter].href;
                    TB_NextHTML = "<span id='TB_next'>  <a href='#'>Next &gt;</a></span>";
                  } else {
                    TB_PrevCaption = TB_TempArray[TB_Counter].title;
                    TB_PrevURL = TB_TempArray[TB_Counter].href;
                    TB_PrevHTML = "<span id='TB_prev'>  <a href='#'>&lt; Prev</a></span>";
                } else {
                  TB_FoundURL = true;
                  TB_imageCount = "Image " + (TB_Counter + 1) +" of "+ (TB_TempArray.length);                     
          imgPreloader = new Image();
          imgPreloader.onload = function(){   
          imgPreloader.onload = null;
          // Resizing large images - orginal by Christian Montoya edited by me.
          var pagesize = tb_getPageSize();
          var x = pagesize[0] - 150;
          var y = pagesize[1] - 150;
          var imageWidth = imgPreloader.width;
          var imageHeight = imgPreloader.height;
          if (imageWidth > x) {
            imageHeight = imageHeight * (x / imageWidth);
            imageWidth = x;
            if (imageHeight > y) {
              imageWidth = imageWidth * (y / imageHeight);
              imageHeight = y;
          } else if (imageHeight > y) {
            imageWidth = imageWidth * (y / imageHeight);
            imageHeight = y;
            if (imageWidth > x) {
              imageHeight = imageHeight * (x / imageWidth);
              imageWidth = x;
          // End Resizing
          TB_WIDTH = imageWidth + 30;
          TB_HEIGHT = imageHeight + 60;
          $("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+url+"' width='"+imageWidth+"' height='"+imageHeight+"' alt='"+caption+"'/></a>" + "<div id='TB_caption'>"+caption+"<div id='TB_secondLine'>" + TB_imageCount + TB_PrevHTML + TB_NextHTML + "</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div>");    
          $("#TB_closeWindowButton").click(tb_remove);
          if (!(TB_PrevHTML === "")) {
            function goPrev(){
              if($(document).unbind("click",goPrev)){$(document).unbind("click",goPrev);}
              $("#TB_window").remove();
              $("body").append("<div id='TB_window'></div>");
              tb_show(TB_PrevCaption, TB_PrevURL, imageGroup);
              return false; 
            $("#TB_prev").click(goPrev);
          if (!(TB_NextHTML === "")) {   
            function goNext(){
              $("#TB_window").remove();
              $("body").append("<div id='TB_window'></div>");
              tb_show(TB_NextCaption, TB_NextURL, imageGroup);       
              return false; 
            $("#TB_next").click(goNext);
          document.onkeydown = function(e){  
            if (e == null) { // ie
              keycode = event.keyCode;
            } else { // mozilla
              keycode = e.which;
            if(keycode == 27){ // close
              tb_remove();
            } else if(keycode == 190){ // display previous image
              if(!(TB_NextHTML == "")){
                document.onkeydown = "";
                goNext();
            } else if(keycode == 188){ // display next image
              if(!(TB_PrevHTML == "")){
                document.onkeydown = "";
                goPrev();
          tb_position();
          $("#TB_load").remove();
          $("#TB_ImageOff").click(tb_remove);
          $("#TB_window").css({display:"block"}); //for safari using css instead of show
          imgPreloader.src = url;
        }else{//code to show html
          var queryString = url.replace(/^[^\?]+\??/,'');
          var params = tb_parseQuery( queryString );
          TB_WIDTH = (params['width']*1) + 30 || 630; //defaults to 630 if no paramaters were added to URL
          TB_HEIGHT = (params['height']*1) + 40 || 440; //defaults to 440 if no paramaters were added to URL
          ajaxContentW = TB_WIDTH - 30;
          ajaxContentH = TB_HEIGHT - 45;
          if(url.indexOf('TB_iframe') != -1){// either iframe or ajax window   
              urlNoQuery = url.split('TB_');
              $("#TB_iframeContent").remove();
              if(params['modal'] != "true"){//iframe no modal
                $("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;' > </iframe>");
              }else{//iframe modal
              $("#TB_overlay").unbind();
                $("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;'> </iframe>");
          }else{// not an iframe, ajax
              if($("#TB_window").css("display") != "block"){
                if(params['modal'] != "true"){//ajax no modal
                $("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>close</a> or Esc Key</div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>");
                }else{//ajax modal
                $("#TB_overlay").unbind();
                $("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>"); 
              }else{//this means the window is already up, we are just loading new content via ajax
                $("#TB_ajaxContent")[0].style.width = ajaxContentW +"px";
                $("#TB_ajaxContent")[0].style.height = ajaxContentH +"px";
                $("#TB_ajaxContent")[0].scrollTop = 0;
                $("#TB_ajaxWindowTitle").html(caption);
          $("#TB_closeWindowButton").click(tb_remove);
            if(url.indexOf('TB_inline') != -1){ 
              $("#TB_ajaxContent").append($('#' + params['inlineId']).children());
              $("#TB_window").unload(function () {
                $('#' + params['inlineId']).append( $("#TB_ajaxContent").children() ); // move elements back when you're finished
              tb_position();
              $("#TB_load").remove();
              $("#TB_window").css({display:"block"});
            }else if(url.indexOf('TB_iframe') != -1){
              tb_position();
              if($.browser.safari){//safari needs help because it will not fire iframe onload
                $("#TB_load").remove();
                $("#TB_window").css({display:"block"});
            }else{
              $("#TB_ajaxContent").load(url += "&random=" + (new Date().getTime()),function(){//to do a post change this load method
                tb_position();
                $("#TB_load").remove();
                tb_init("#TB_ajaxContent a.thickbox");
                $("#TB_window").css({display:"block"});
        if(!params['modal']){
          document.onkeyup = function(e){  
            if (e == null) { // ie
              keycode = event.keyCode;
            } else { // mozilla
              keycode = e.which;
            if(keycode == 27){ // close
              tb_remove();
      } catch(e) {
        //nothing here
    //helper functions below
    function tb_showIframe(){
      $("#TB_load").remove();
      $("#TB_window").css({display:"block"});
    function tb_remove() {
       $("#TB_imageOff").unbind("click");
      $("#TB_closeWindowButton").unbind("click");
      $("#TB_window").fadeOut("fast",function(){$('#TB_window,#TB_overlay,#TB_HideSelect').trigger("unload").unbind().remove();});
      $("#TB_load").remove();
      if (typeof document.body.style.maxHeight == "undefined") {//if IE 6
        $("body","html").css({height: "auto", width: "auto"});
        $("html").css("overflow","");
      document.onkeydown = "";
      document.onkeyup = "";
      return false;
    function tb_position() {
    $("#TB_window").css({marginLeft: '-' + parseInt((TB_WIDTH / 2),10) + 'px', width: TB_WIDTH + 'px'});
      if ( !(jQuery.browser.msie && jQuery.browser.version < 7)) { // take away IE6
        $("#TB_window").css({marginTop: '-' + parseInt((TB_HEIGHT / 2),10) + 'px'});
    function tb_parseQuery ( query ) {
       var Params = {};
       if ( ! query ) {return Params;}// return empty object
       var Pairs = query.split(/[;&]/);
       for ( var i = 0; i < Pairs.length; i++ ) {
          var KeyVal = Pairs[i].split('=');
          if ( ! KeyVal || KeyVal.length != 2 ) {continue;}
          var key = unescape( KeyVal[0] );
          var val = unescape( KeyVal[1] );
          val = val.replace(/\+/g, ' ');
          Params[key] = val;
       return Params;
    function tb_getPageSize(){
      var de = document.documentElement;
      var w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
      var h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight;
      arrayPageSize = [w,h];
      return arrayPageSize;
    function tb_detectMacXFF() {
      var userAgent = navigator.userAgent.toLowerCase();
      if (userAgent.indexOf('mac') != -1 && userAgent.indexOf('firefox')!=-1) {
        return true;
    /* ---------->>> global settings needed for thickbox <<<-----------------------------------------------------------*/
    *{padding: 0; margin: 0;}
    /* ---------->>> thickbox specific link and font settings <<<------------------------------------------------------*/
    #TB_window {
      font: 12px Arial, Helvetica, sans-serif;
      color: #333333;
    #TB_secondLine {
      font: 10px Arial, Helvetica, sans-serif;
      color:#666666;
    #TB_window a:link {color: #666666;}
    #TB_window a:visited {color: #666666;}
    #TB_window a:hover {color: #000;}
    #TB_window a:active {color: #666666;}
    #TB_window a:focus{color: #666666;}
    /* ---------->>> thickbox settings <<<-----------------------------------------------------------------------------*/
    #TB_overlay {
      position: fixed;
      z-index:100;
      top: 0px;
      left: 0px;
      height:100%;
      width:100%;
    .TB_overlayMacFFBGHack {background: url(macFFBgHack.png) repeat;}
    .TB_overlayBG {
      background-color:#000;
      filter:alpha(opacity=75);
      -moz-opacity: 0.75;
      opacity: 0.75;
    * html #TB_overlay { /* ie6 hack */
         position: absolute;
         height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
    #TB_window {
      position: fixed;
      background: #ffffff;
      z-index: 102;
      color:#000000;
      display:none;
      border: 4px solid #525252;
      text-align:left;
      top:50%;
      left:50%;
    * html #TB_window { /* ie6 hack */
    position: absolute;
    margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
    #TB_window img#TB_Image {
      display:block;
      margin: 15px 0 0 15px;
      border-right: 1px solid #ccc;
      border-bottom: 1px solid #ccc;
      border-top: 1px solid #666;
      border-left: 1px solid #666;
    #TB_caption{
      height:25px;
      padding:7px 30px 10px 25px;
      float:left;
    #TB_closeWindow{
      height:25px;
      padding:11px 25px 10px 0;
      float:right;
    #TB_closeAjaxWindow{
      padding:7px 10px 5px 0;
      margin-bottom:1px;
      text-align:right;
      float:right;
    #TB_ajaxWindowTitle{
      float:left;
      padding:7px 0 5px 10px;
      margin-bottom:1px;
    #TB_title{
      background-color:#e8e8e8;
      height:27px;
    #TB_ajaxContent{
      clear:both;
      padding:2px 15px 15px 15px;
      overflow:auto;
      text-align:left;
      line-height:1.4em;
    #TB_ajaxContent.TB_modal{
      padding:15px;
    #TB_ajaxContent p{
      padding:5px 0px 5px 0px;
    #TB_load{
      position: fixed;
      display:none;
      height:13px;
      width:208px;
      z-index:103;
      top: 50%;
      left: 50%;
      margin: -6px 0 0 -104px; /* -height/2 0 0 -width/2 */
    * html #TB_load { /* ie6 hack */
    position: absolute;
    margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
    #TB_HideSelect{
      z-index:99;
      position:fixed;
      top: 0;
      left: 0;
      background-color:#fff;
      border:none;
      filter:alpha(opacity=0);
      -moz-opacity: 0;
      opacity: 0;
      height:100%;
      width:100%;
    * html #TB_HideSelect { /* ie6 hack */
         position: absolute;
         height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
    #TB_iframeContent{
      clear:both;
      border:none;
      margin-bottom:-1px;
      margin-top:1px;
      _margin-bottom:1px;
    Right Click and Download:
    * Thickbox 3 - One Box To Rule Them All.
    * By Cody Lindley (http://www.codylindley.com)
    * Copyright (c) 2007 cody lindley
    * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
    var tb_pathToImage = "images/loadingAnimation.gif";
    eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('$(o).2S(9(){1u(\'a.18, 3n.18, 3i.18\');1w=1p 1t();1w.L=2H});9 1u(b){$(b).s(9(){6 t=X.Q||X.1v||M;6 a=X.u||X.23;6 g=X.1N||P;19(t,a,g);X.2E();H P})}9 19(d,f,g){3m{3(2t o.v.J.2i==="2g"){$("v","11").r({A:"28%",z:"28%"});$("11").r("22","2Z");3(o.1Y("1F")===M){$("v").q("<U 5=\'1F\'></U><4 5=\'B\'></4><4 5=\'8\'></4>");$("#B").s(G)}}n{3(o.1Y("B")===M){$("v").q("<4 5=\'B\'></4><4 5=\'8\'></4>");$("#B").s(G)}}3(1K()){$("#B").1J("2B")}n{$("#B").1J("2z")}3(d===M){d=""}$("v").q("<4 5=\'K\'><1I L=\'"+1w.L+"\' /></4>");$(\'#K\').2y();6 h;3(f.O("?")!==-1){h=f.3l(0,f.O("?"))}n{h=f}6 i=/\\.2s$|\\.2q$|\\.2m$|\\.2l$|\\.2k$/;6 j=h.1C().2h(i);3(j==\'.2s\'||j==\'.2q\'||j==\'.2m\'||j==\'.2l\'||j==\'.2k\'){1D="";1G="";14="";1z="";1x="";R="";1n="";1r=P;3(g){E=$("a[@1N="+g+"]").36();25(D=0;((D<E.1c)&&(R===""));D++){6 k=E[D].u.1C().2h(i);3(!(E[D].u==f)){3(1r){1z=E[D].Q;1x=E[D].u;R="<1e 5=\'1X\'>&1d;&1d;<a u=\'#\'>2T &2R;</a></1e>"}n{1D=E[D].Q;1G=E[D].u;14="<1e 5=\'1U\'>&1d;&1d;<a u=\'#\'>&2O; 2N</a></1e>"}}n{1r=1b;1n="1t "+(D+1)+" 2L "+(E.1c)}}}S=1p 1t();S.1g=9(){S.1g=M;6 a=2x();6 x=a[0]-1M;6 y=a[1]-1M;6 b=S.z;6 c=S.A;3(b>x){c=c*(x/b);b=x;3(c>y){b=b*(y/c);c=y}}n 3(c>y){b=b*(y/c);c=y;3(b>x){c=c*(x/b);b=x}}13=b+30;1a=c+2G;$("#8").q("<a u=\'\' 5=\'1L\' Q=\'1o\'><1I 5=\'2F\' L=\'"+f+"\' z=\'"+b+"\' A=\'"+c+"\' 23=\'"+d+"\'/></a>"+"<4 5=\'2D\'>"+d+"<4 5=\'2C\'>"+1n+14+R+"</4></4><4 5=\'2A\'><a u=\'#\' 5=\'Z\' Q=\'1o\'>1l</a> 1k 1j 1s</4>");$("#Z").s(G);3(!(14==="")){9 12(){3($(o).N("s",12)){$(o).N("s",12)}$("#8").C();$("v").q("<4 5=\'8\'></4>");19(1D,1G,g);H P}$("#1U").s(12)}3(!(R==="")){9 1i(){$("#8").C();$("v").q("<4 5=\'8\'></4>");19(1z,1x,g);H P}$("#1X").s(1i)}o.1h=9(e){3(e==M){I=2w.2v}n{I=e.2u}3(I==27){G()}n 3(I==3k){3(!(R=="")){o.1h="";1i()}}n 3(I==3j){3(!(14=="")){o.1h="";12()}}};16();$("#K").C();$("#1L").s(G);$("#8").r({Y:"T"})};S.L=f}n{6 l=f.2r(/^[^\\?]+\\??/,\'\');6 m=2p(l);13=(m[\'z\']*1)+30||3h;1a=(m[\'A\']*1)+3g||3f;W=13-30;V=1a-3e;3(f.O(\'2j\')!=-1){1E=f.1B(\'3d\');$("#15").C();3(m[\'1A\']!="1b"){$("#8").q("<4 5=\'2f\'><4 5=\'1H\'>"+d+"</4><4 5=\'2e\'><a u=\'#\' 5=\'Z\' Q=\'1o\'>1l</a> 1k 1j 1s</4></4><U 1W=\'0\' 2d=\'0\' L=\'"+1E[0]+"\' 5=\'15\' 1v=\'15"+1f.2c(1f.1y()*2b)+"\' 1g=\'1m()\' J=\'z:"+(W+29)+"p;A:"+(V+17)+"p;\' > </U>")}n{$("#B").N();$("#8").q("<U 1W=\'0\' 2d=\'0\' L=\'"+1E[0]+"\' 5=\'15\' 1v=\'15"+1f.2c(1f.1y()*2b)+"\' 1g=\'1m()\' J=\'z:"+(W+29)+"p;A:"+(V+17)+"p;\'> </U>")}}n{3($("#8").r("Y")!="T"){3(m[\'1A\']!="1b"){$("#8").q("<4 5=\'2f\'><4 5=\'1H\'>"+d+"</4><4 5=\'2e\'><a u=\'#\' 5=\'Z\'>1l</a> 1k 1j 1s</4></4><4 5=\'F\' J=\'z:"+W+"p;A:"+V+"p\'></4>")}n{$("#B").N();$("#8").q("<4 5=\'F\' 3c=\'3b\' J=\'z:"+W+"p;A:"+V+"p;\'></4>")}}n{$("#F")[0].J.z=W+"p";$("#F")[0].J.A=V+"p";$("#F")[0].3a=0;$("#1H").11(d)}}$("#Z").s(G);3(f.O(\'37\')!=-1){$("#F").q($(\'#\'+m[\'26\']).1T());$("#8").24(9(){$(\'#\'+m[\'26\']).q($("#F").1T())});16();$("#K").C();$("#8").r({Y:"T"})}n 3(f.O(\'2j\')!=-1){16();3($.1q.35){$("#K").C();$("#8").r({Y:"T"})}}n{$("#F").34(f+="&1y="+(1p 33().32()),9(){16();$("#K").C();1u("#F a.18");$("#8").r({Y:"T"})})}}3(!m[\'1A\']){o.21=9(e){3(e==M){I=2w.2v}n{I=e.2u}3(I==27){G()}}}}31(e){}}9 1m(){$("#K").C();$("#8").r({Y:"T"})}9 G(){$("#2Y").N("s");$("#Z").N("s");$("#8").2X("2W",9(){$(\'#8,#B,#1F\').2V("24").N().C()});$("#K").C();3(2t o.v.J.2i=="2g"){$("v","11").r({A:"1Z",z:"1Z"});$("11").r("22","")}o.1h="";o.21="";H P}9 16(){$("#8").r({2U:\'-\'+20((13/2),10)+\'p\',z:13+\'p\'});3(!(1V.1q.2Q&&1V.1q.2P<7)){$("#8").r({38:\'-\'+20((1a/2),10)+\'p\'})}}9 2p(a){6 b={};3(!a){H b}6 c=a.1B(/[;&]/);25(6 i=0;i<c.1c;i++){6 d=c[i].1B(\'=\');3(!d||d.1c!=2){39}6 e=2a(d[0]);6 f=2a(d[1]);f=f.2r(/\\+/g,\' \');b[e]=f}H b}9 2x(){6 a=o.2M;6 w=1S.2o||1R.2o||(a&&a.1Q)||o.v.1Q;6 h=1S.1P||1R.1P||(a&&a.2n)||o.v.2n;1O=[w,h];H 1O}9 1K(){6 a=2K.2J.1C();3(a.O(\'2I\')!=-1&&a.O(\'3o\')!=-1){H 1b}}',62,211,'|||if|div|id|var||TB_window|function||||||||||||||else|document|px|append|css|click||href|body||||width|height|TB_overlay|remove|TB_Counter|TB_TempArray|TB_ajaxContent|tb_remove|return|keycode|style|TB_load|src|null|unbind|indexOf|false|title|TB_NextHTML|imgPreloader|block|iframe|ajaxContentH|ajaxContentW|this|display|TB_closeWindowButton||html|goPrev|TB_WIDTH|TB_PrevHTML|TB_iframeContent|tb_position||thickbox|tb_show|TB_HEIGHT|true|length|nbsp|span|Math|onload|onkeydown|goNext|Esc|or|close|tb_showIframe|TB_imageCount|Close|new|browser|TB_FoundURL|Key|Image|tb_init|name|imgLoader|TB_NextURL|random|TB_NextCaption|modal|split|toLowerCase|TB_PrevCaption|urlNoQuery|TB_HideSelect|TB_PrevURL|TB_ajaxWindowTitle|img|addClass|tb_detectMacXFF|TB_ImageOff|150|rel|arrayPageSize|innerHeight|clientWidth|self|window|children|TB_prev|jQuery|frameborder|TB_next|getElementById|auto|parseInt|onkeyup|overflow|alt|unload|for|inlineId||100||unescape|1000|round|hspace|TB_closeAjaxWindow|TB_title|undefined|match|maxHeight|TB_iframe|bmp|gif|png|clientHeight|innerWidth|tb_parseQuery|jpeg|replace|jpg|typeof|which|keyCode|event|tb_getPageSize|show|TB_overlayBG|TB_closeWindow|TB_overlayMacFFBGHack|TB_secondLine|TB_caption|blur|TB_Image|60|tb_pathToImage|mac|userAgent|navigator|of|documentElement|Prev|lt|version|msie|gt|ready|Next|marginLeft|trigger|fast|fadeOut|TB_imageOff|hidden||catch|getTime|Date|load|safari|get|TB_inline|marginTop|continue|scrollTop|TB_modal|class|TB_|45|440|40|630|input|188|190|substr|try|area|firefox'.split('|'),0,{}))
    How to Implement ThickBox:
    Before you can implement ThickBox make sure the page that invokes  ThickBox has a valid DTD. This is  required for ThickBox to look and function correctly.
    1. ThickBox requires the jQuery JavaScript library; because of  this, you will need to include the jquery.js file in the head element of  your web page, followed by the thickbox.js file (NOTE: jquery.js must  come first in the source order). Example below:
    <script type="text/javascript" src="path-to-file/jquery.js"></script>
    <script type="text/javascript" src="path-to-file/thickbox.js"></script>
    Once you have included the .js files, open thickbox.js or thickbox-compressed.js and locate the tb_pathToImage variable at the top of the page. Once you  have found it, make sure to change the value of tb_pathToImage to the  path where the loadingAnimation.gif file is located on your own server.
    2. Include the ThickBox CSS file in your web page. As of version  3.1 you will                     also need to update the path to the macFFBgHack.png in the thickbox.css                     file. Example options below:
    <link rel="stylesheet" href="path-to-file/thickbox.css" type="text/css" media="screen" />
    Or
    <style type="text/css" media="all">@import "path-to-file/thickbox.css";</style>
    Or, open the thickbox.css file                     and copy and paste the styles into an existing style sheet. Be                     aware that the ThickBox CSS file will remove the browsers default                     padding and margin for all elements.
    3. View the examples to learn the many different ways to use and  invoke ThickBox functionality.
    Supported & Tested Browsers
    Windows IE 6.0, Windows IE 7+, Windows FF 2.0.0.6+, Windows Opera  9.0+,                Macintosh Safari 2.0.4+, Macintosh FF 2.0.0.6+, Macintosh Opera 9.10+
    MIT License/GNU License
    http://www.opensource.org/licenses/mit-license.php
    http://www.gnu.org/licenses/gpl.html
    Permission is hereby granted, free of charge, to any person obtaining  a copy of this software and associated documentation files (the  "Software"), to deal in the Software without restriction, including  without limitation the rights to use, copy, modify, merge, publish,  distribute, sublicense, and/or sell copies of the Software, and to  permit persons to whom the Software is furnished to do so.
    Change Log
    As of 08/01/2007
    Added modal functionality to ThickBox iframes
    Fixed Flash  transparency issue with Firefox on OSX
    Updated to jQuery 1.1.3.1
    Changed how inline content is handled in Thickbox. Instead of  duplicating the inline content thickbox will now move it accordingly  inside of the DOM
    Safari iframe source issue solved
    As of 05/02/2007
    If sizes are not set for width and/or height (inline, iframe, and  ajax content), ThickBox will default to a width of 630px and a height  of 440px
    iframe hack to hide &select" elements now only runs in IE 6
    Scrollbars are removed in IE 6 when a ThickBox is opened (to counter  IE 6's errant width and height calculations)
    Cleaned code using

  • Packaged app - image script problem

    I have a packaged app which has several scripts to install the underlying database objects and seed the initial data. It also runs as script to install the images which are specific to the app, not the workspace.
    The script is created using the export and hard codes the app ID. If a user installs the new app and chooses any other app number then the images are not associated with the app.
    Is there any sensible way to avoid the hard coding of these values in the script?
    EG:
    wwv_flow.g_flow_id := 457;
    AND:
    wwv_flow_image_api.remove_image(
    p_image_name => 'all.gif',
    p_flow_id => 457);
    wwv_flow_image_api.remove_image(
    p_image_name => 'none.gif',
    p_flow_id => 457);

    Scott
    I install the app as normal (from an export) but have scripts that run following the app. To make fewer steps for the end user, I was hoping to be able to use this, possibly modified as part of the supporting object scripts? If this is not possible I'll have to add more steps to the install. Is there any way of automating or adding this to the supporting object scripts or some other way I am not aware of please?
    Thanks
    Phil

  • Accessing ressources (css,images, scripts...) in portal archive via URL?

    Hello!
    I have created a par file with the following PAR-Archive:
    *.par
      ¦
      +---meta-inf                Automatically generated.
      ¦
      ¦                           All files and folders in the root folder are deployed as public. This usually includes resources,
      +---images                  images,
      +---css                     css,
      +---scripts                 JavaScripts etc.
    According to the documentation, you can access all folders in the archive. But in which way??? The URL looks like this:
    http://bbmag34.bbmag.aldi.com:50000/irj/servlet/prt/portal/prtmode/preview/prtroot/pcd!3aportal_content!2fALDI!2fcom.aldi.extranet!2fcom.aldi.iviews!
    2fcom.aldi.extranet.iview.flex-integrator-text <- i tried to add !2fscripts!2fhallo.txt (which i copied to the scripts directory) but nothing happened.

    Hi Björn,
    maybe this will help...
    public static String getImageUrl(IPortalComponentRequest request) {
              HttpServletRequest httpRequest = request.getServletRequest();
              StringBuffer buf = new StringBuffer(1024);
                                    String prot = (httpRequest.isSecure()) ? "https://" : "http://";
                                    buf.append(prot)
                                      .append(httpRequest.getServerName())
                                      .append(":")
                                      .append(httpRequest.getServerPort())
                .append(request.getWebResourcePath())
                                      .append("/images/");
              return buf.toString();
    Regards,
    Jens

  • Need Random Image Script with Links

    I am needing a script for random images on my homepage. I
    need the image to have its own link depending on what image is
    displayed. I would like a php script (non database) if
    possible

    See comments on DW forum about random includes and this
    particular markup
    shown below.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "newhorizonhosting.com" <[email protected]>
    wrote in message
    news:e29on1$buf$[email protected]..
    >I figured it out by doing a random include
    >
    > <?
    > srand(time());
    > $random = (rand()%3);
    > print("$random");
    > require_once("./$random.php");
    > ?>

  • Need Random Image Script with Link

    I am needing a script for random images on my homepage. I
    need the image to have its own link depending on what image is
    displayed. I would like a php script (non database) if
    possible

    Not sure about the PHP but there are some good scrips on
    www.kaosweaver.com
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "newhorizonhosting.com" <[email protected]>
    wrote in message
    news:e28rpm$8is$[email protected]..
    >I am needing a script for random images on my homepage. I
    need the image to
    >have its own link depending on what image is displayed. I
    would like a php
    >script (non database) if possible

  • A random image script

    hi all :)
    i want to create a random card picker and this script works great for me. but how can i add clickable links to cards after they are generated randomly? i want the new image generated in the same place where 0.jpg is when button is clicked exactly like in the script, but with a clickable link on it.
    thanks in advance :)
    <script language="javascript">
    <!-- Begin
    function show(){
    var theImages = new Array()
    theImages[0] = 'deck/card1.jpg'
    theImages[1] = 'deck/card2.jpg'
    theImages[2] = 'deck/card3.jpg'
    theImages[3] = 'deck/card4.jpg'
    theImages[4] = 'deck/card5.jpg'
    theImages[5] = 'deck/card6.jpg'
    var j = 0
    var p = theImages.length;
    var preBuffer = new Array()
    for (i = 0; i < p; i++){
    preBuffer[i] = new Image()
    preBuffer.src = theImages[i]
    var whichImage = Math.round(Math.random()*(p-1));
    document.picture.src = theImages[whichImage];
    }// End -->
    </script>
    <img src="deck/0.jpg" name="picture" />
    <form>
    <input type="button" value="pick a card" onclick="show()">
    </form>

    Java is not the same as JavaScript.
    Try posting your question in a [JavaScript forum|http://www.google.com/search?q=javascript+forum].

  • Need good disk image script

    I am loading Solaris 2.6 on a 9GB drive and want to image this onto other drives to create spare disks. Could someone see the problem in my script or recommend another. Mine did not create a bootable disk.
    #!bin/csh -F
    mkdir imagemnt
    echo "y" /imagetmp_9GB_boot
    foreach part (0 1 4 5 6 7)
         newfs /dev/rdsk/c0t1d0s$part < /imagetmp_9GB_boot
         mount /dev/dsk/c0t1d0s$part /imagemnt
         cd /imagemnt
         ufsdump 0f - /dev/rdsk/c0t0d0s$part | ufsrestore rf -
         if ($part == 0) then
              cd /usr/platform/`uname -i`/lib/fs/ufs
              installboot bootblk /dev/rdsk/c0t1d0s0
         endif
         rm -f restoresymtable
         cd /
         umount /imagemnt
    end
    rm -r imagemnt

    No. You need to phone Apple and order replacements, or if the MacBook shipped with Mac OS X 10.6.2 or earlier, buy a Mac OS X 10.6 DVD from the online Apple Store.
    (117537)

Maybe you are looking for

  • Tax code O1 does not appear in any G/L account item

    Hi Gurus, I have a requirement with client, they have got two types of taxes (Adv Income Tax & Value Added Tax). For which I created 2 tax codes O1 & O2 (with 5% & 1.5%). I created two tax conditoins ZVAT & ZAIT with access sequence MWST. I assigned

  • Outook PST to Entourage, iCal etc?

    I know its probably been asked many times before and I have read a few posts and googled it many times. I have Outlook 2007 with about a 2-3gig PST. I am looking to go over to the dark side (iMac) and want to know the best way of converting this into

  • A wierd error of JDBC Receiver adapter

    Dear Expert, I got stuck by the JDBC receiver adapter with PI 7.11, the log is 'JDBC Message processing failed, due to Error processing request in sax parser: Error when executing statement for table/stored proc. 'null' (structure 'SYSTEM'): java.lan

  • Z Tcode doesn't write the last part of program

    Hi experts, I have a program in a transaction code, and the last part, must be write: Send it to the world     lv_sent_to_all = lo_send_request->send( i_with_error_screen = 'X' ).     IF lv_sent_to_all = 'X'.       WRITE 'Email Sent Successfully'.   

  • Split Values in a dropdown list

    Hi friends i am stuck with a problem for which i need your help.i will list it out as below. i am having a dropdown in my jsp page a ComboBox. The values in the dropdown are in the form After 10 minutes After 20 minutes After 30 minutes Before 5 minu