PLEASE HELP! How to replace *eval* in code

Dear JavaScript Experts,
I kindly ask for your expertise. I am an Ebay Seller and love creating beautiful listings using JavaScripts.
Unfortunately Ebay has a set of rules that do not allow certain words within the code for safety issues.
I just want to use the following "Fade In Picture Slide Show" JavaScript in my listing.
Here is the challenge: Ebay does not allow the following words in the code.
Quote Ebay:
Your listing cannot contain javascript (".cookie", "cookie(", "replace(", "open(", "eval(", IFRAME, META, or includes) or cookies.
Is there an expert out there that will able to revise the following Script that will comply with Ebay Policies?
Thank you so much in advance to anyone who was kind enough to answer and solve this! Thank You! ;o)
Here is the Script:
<script language="JavaScript1.2">
Blending Image Slide Show Script-
� Dynamic Drive (www.dynamicdrive.com)
For full source code, 100's more DHTML scripts, and Terms Of Use, visit dynamicdrive.com
function reapply(){
setTimeout("slideit()",2000)
return true
window.onerror=reapply
</script>
<script language="JavaScript1.1">
<!--
var image1=new Image()
image1.src="firstimage.gif"
var image2=new Image()
image2.src="second.gif"
var image3=new Image()
image3.src="third.gif"
//-->
</script>
<img src="firstimage.gif" name="slide" border=0 style="filter:blendTrans(duration=3)">
<script>
<!--
////change number of images below
var number_of_images=3
//change speed below (in seconds)
var speed=3
var step=1
var whichimage=1
function slideit(){
if (!document.images)
return
if (document.all)
slide.filters.blendTrans.apply()
document.images.slide.src=eval("image"+step+".src")
if (document.all)
slide.filters.blendTrans.play()
whichimage=step
if (step<number_of_images)
step++
else
step=1
if (document.all)
setTimeout("slideit()",speed*1000+3000)
else
setTimeout("slideit()",speed*1000)
function slidelink(){
if (whichimage==1)
window.location="link1.htm"
else if (whichimage==2)
window.location="link2.htm"
else if (whichimage==3)
window.location="link3.htm"
//-->
</script>

Sorry about the previous question. Its a bit difficult to read code without [code[ tags.
document.images.slide.src=eval("image"+step+".src");Now, if "step" is an int, you could get round it by using an array. You could store all the images in an array called image, and use step as the subscript.
so you would replace that line with document.images.slide.src = image[step].src;The rest of the fixing is left as an exercise to the reader...
(yes, I know this is NOT a javascript forum, but I like javascript).

Similar Messages

  • Please help: How to replace all data on mid-2010 MacBook Pro 15 with Timemachine backup from 2009 MBP 13

    OK so I bought a mid-2010 MacBook pro 15 from a friend and he did not erase anything before he gave it to me. I was previously working on a 2009 MacBook pro 13 and have a Timemachine backup from that which I would like to install on the MBP 15 replacing all of the current data.
    I have tried rebooting using the OSX disc that came with the MBP 15 but that won't work - I am assuming that is because the OSX disc is version 10.6.3 while the current OS on the MBP 15 is 10.7.4
    What is the best/easiest way to use the Timemachine backup of my MBP 13" to replace all info on the MBP 15"?
    This seems like something that should be easy but I have been trying to do it since last night and haven't found relevant info in the discussion forums. Any help would be greatly appreciated!!
    Thanks!

    MacBook Pro 15" 2010
    Intel Core i7 2.8GHz M 640 Arrandale Cores 2  (2867)
    8GB max RAM 2 - 204-pin PC3-8500 (1066 MHz) DDR3 SO-DIMM
    NVIDIA GeForce GT 330M 512MB (15.85) (369) and Intel HD Graphics 3000 (10) (309)
    MacBook Pro 13" Mid 2012
    Intel Core i7 3520M Ivy Bridge Cores 2 (4519)*
    16GB RAM max actual (8GB Apple) 2 - 204-pin PC3-12800 (1600 MHz) DDR3 SO-DIMM
    Intel HD Graphics 4000 (unknown) (465)*
    The 13" is a more powerful machine and it has more RAM capacity.

  • Hi, please help my other daughter her ipod touch is disabled connect to itunes after say its itunes couldnt connect to the ipod touch coz its is locked with a passcode?? please help how...

    hi, my daughter hers ipod touch is disabled connect to itunes after say its itunes couldnot connect to the "ipod touch" because its is locked with a passcode please help how to fix connect...i did turn off her ipod touch put usb back on there same in doenot say still ipod is disabled i dont understand please help how???

    If You Are Locked Out Or Have Forgotten Your Passcode or Just Need to Restore Your Device
      1. iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
      2. iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
      3. iOS- Understanding passcodes
         If you have forgotten your Restrictions code, then follow the instructions
         below but DO NOT restore any previous backup. If you do then you will
         simply be restoring the old Restrictions code you have forgotten. This
         same warning applies if you need to restore a clean system.
    A Complete Guide to Restore or Recover Your iDevice (if You Forget Your Passcode)
    If you need to restore your device or ff you cannot remember the passcode, then you will need to restore your device using the computer with which you last synced it. This allows you to reset your passcode and re-sync the data from the device (or restore from a backup). If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present. Refer to Updating and restoring iPhone, iPad and iPod touch software.
    Try restoring the iOS device if backing up and erasing all content and settings doesn't resolve the issue. Using iTunes to restore iOS devices is part of standard isolation troubleshooting. Restoring your device will delete all data and content, including songs, videos, contacts, photos, and calendar information, and will restore all settings to their factory condition.
    Before restoring your iOS device, Apple recommends that you either sync with iTunes to transfer any purchases you have made, or back up new data (data acquired after your last sync). If you have movie rentals on the device, see iTunes Store movie rental usage rights in the United States before restoring.
    Follow these steps to restore your device:
         1. Verify that you are using the latest version of iTunes before attempting to update.
         2. Connect your device to your computer.
         3. Select your iPhone, iPad, or iPod touch when it appears in iTunes under Devices.
         4. Select the Summary tab.
         5. Select the Restore option.
         6. When prompted to back up your settings before restoring, select the Back Up
             option (see in the image below). If you have just backed up the device, it is not
             necessary to create another.
         7. Select the Restore option when iTunes prompts you (as long as you've backed up,
             you should not have to worry about restoring your iOS device).
         8. When the restore process has completed, the device restarts and displays the Apple
             logo while starting up:
               After a restore, the iOS device displays the "Connect to iTunes" screen. For updating
              to iOS 5 or later, follow the steps in the iOS Setup Assistant. For earlier versions of
              iOS, keep your device connected until the "Connect to iTunes" screen goes away or
              you see "iPhone is activated."
         9. The final step is to restore your device from a previous backup. If you do not have a
              backup to restore, then restore as New.
    If you are restoring to fix a forgotten Restrictions Code or as a New device, then skip Step 9 and restore as New.

  • Please Help - How to pass Table objects as input and output parameters using VC++

    Please help me by giving a sample code to call the procedure
    GetClassInstanceProperties from a VC++ application using
    Oracle Objects for OLE
    CREATE OR REPLACE TYPE TY_INST_ID_PROP_PAIR AS OBJECT
    (INST_ID CHAR(38), PROP_ID CHAR(38), VALUE XMLTYPE);
    CREATE OR REPLACE PACKAGE DBMS_PROPERTYSTORE
    AUTHID CURRENT_USER
    AS
         --Used to return the ids from the functions
         TYPE tt_UUIDs IS TABLE OF char(38) index by binary_integer;
         TYPE tt_inst_id_prop_pairs is table of ty_inst_id_prop_pair index by binary_integer;
         PROCEDURE GetClassInstanceProperties(ClassId IN char, Prop_Ids in TT_UUIDs,
    Inst_Id_Prop_Pairs out TT_Inst_Id_Prop_Pair);
    END DBMS_PROPERTYSTORE;
    CREATE OR REPLACE PACKAGE BODY DBMS_PROPERTYSTORE AS
         PROCEDURE GetClassInstanceProperties
              ClassId IN char,
              Prop_Ids in TT_UUIDs,
              Inst_Id_Prop_Pairs out TT_INST_ID_PROP_PAIR
         AS
         BEGIN
              --Return the instanceid,propertyid and values for a certain class
              --only return those properties that in the user supplied Prop_ids table
              FOR I in Prop_Ids.FIRST..Prop_Ids.LAST loop
                   select TY_Inst_Id_Prop_Pair(i.Inst_Id,p.Prop_Id,p.Value) into Inst_Id_Prop_Pairs(I)
                        from TBL_Instance i, table(Prop_Pairs) p
                        where I.Cls_Id.Cls_Id=ClassID
                        and p.Prop_Id = Prop_Ids(I);
              END LOOP;
         EXCEPTION
              WHEN NO_DATA_FOUND THEN
                   raise_application_error(-20100, 'No data found');
              WHEN OTHERS THEN
                   raise_application_error(-20200, SQLERRM);
         END GetClassInstanceProperties;
    END DBMS_PROPERTYSTORE;

    HI
    Go to the lay out of your screen and doublr click on the table control fields, you can get the Properties/Attribute of the screen or table control Fields
    Assing a Group GRP1 for all the fields i n the table control.
    in PBO
    if ok_code = 'INPUT'.
    LOOP AT SCREEN.
    IF screen-grp1 = 'GRP1'.
    screen-input = 1.
    modify screen.
    endif.
    ENDLOOP.
    elseif ok_code = 'OUTPUT'.
    LOOP AT SCREEN.
    if screen-grp1 = 'GRP1'.
    screen-input = 0.
    modify screen.
    endif.
    endloop.
    endif.
    Regards
    Ramchander Rao.K
    Edited by: Ramchander Krishnamraju on Aug 8, 2009 5:27 AM

  • Please help : How to print a matrix from the console...

    Hi..
    Please help:
    How to print a matrix on the console , but i want to take all the input from the console.. like...
    if the matrix is of size...
    mxn
    where
    m : row
    n : column
    and the all the elements of the matrix from the console it self... .
    Please help...

    Thanks...
    I am able to print the elements of the array but i am not able to assign those values to the array ....
    How to do that...
    I just did a little change in my code...
    import java.util.Scanner;
    public class CreatingAMatrix {
        public static void main(String[] args) {
         // TODO Auto-generated method stub
         System.out.print("Enter the number of rows: ");
         Scanner scanner1 = new Scanner(System.in);
         int m = scanner1.nextInt();
         System.out.print("Enter the number of coulmns:");
         Scanner scanner2 = new Scanner(System.in);
         int n = scanner2.nextInt();
         System.out.println("The size of the matrix is : " +m+" x "+n );
         int[][] a = new int[100][100];
         for(int i=0;i<=m;i++)
             for(int j =0; j <= n; j++)
              Scanner scanner3 = new Scanner(System.in);
              int o = scanner3.nextInt();
             System.out.println();
         for(int i=0;i<=m;i++)
             for(int j =0; j <= n; j++)
              System.out.print(a[i][j] + "\t");
             System.out.println();
    }I am getting an output as this
    output:
    Enter the number of rows: 2
    Enter the number of coulmns:1
    The size of the matrix is : 2 x 1
    1
    2
    1
    2
    3
    5
    0     0     
    0     0     
    0     0     
    how should i assig those input values to my array..
    Please help

  • Hi, when ever I'm using 3G, on my Iphone4 sim stops working and Network is lost, this started after I updated my phone with  6.0.1(10A523)version. Please help how to solve this problem.

    Hi, when ever I'm using 3G, on my Iphone4 sim stops working and network is lost, this started after I updated my phone with  6.0.1(10A523)version. Please help how to solve this problem. Thanks.

    Photos/videos in the Camera Roll are not synced. Photos/videos in the Camera Roll are not touched with the iTunes sync process. Photos/videos in the Camera Roll can be imported by your computer which is not handled by iTunes. Most importing software includes an option to delete the photos/videos from the Camera Roll after the import process is complete. If is my understanding that some Windows import software supports importing photos from the Camera Roll, but not videos. Regardless, the import software should not delete the photos/videos from the Camera Roll unless you set the app to do so.
    Photos/videos in the Camera Roll are included with your iPhone's backup. If you synced your iPhone with iTunes before the videos on the Camera Roll went missing and you haven't synced your iPhone with iTunes since they went missing, you can try restoring the iPhone with iTunes from the iPhone's backup. Don't sync the iPhone with iTunes again and decline the prompt to update the iPhone's backup after selecting Restore.

  • After updating my Macbook Pro retina display to os x yosemite 10.10.2, the mause and track pad locks, and do not respond especially when using the Mac for a long period, please help, how can I solve this, I do not like feel like in windows, so I paid

    after updating my Macbook Pro retina display to os x yosemite 10.10.2, the mause and track pad locks, and do not respond especially when using the Mac for a long period, please help, how can I solve this, I do not like feel like in windows, so I paid good money for this mack, I feel calm

    Hi Buterem,
    I'm sorry to hear you are having issues with your MacBook Pro since your recent Yosemite update. I also apologize, I'm a bit unclear on the exact nature of the issue you are describing. If you are having intermittent but persistent responsiveness issues with your mouse or trackpad, you may want to try using Activity Monitor to see if these incidents correspond to occupied system resources, especially system memory or CPU. You may find the following article helpful:
    How to use Activity Monitor - Apple Support
    If the entire system hangs or locks up (for example, if the system clock freezes and stops counting up), you may also be experiencing some variety of Kernel Panic. If that is the case, you may also find this article useful:
    OS X: When your computer spontaneously restarts or displays "Your computer restarted because of a problem." - Apple Support
    Regards,
    - Brenden

  • HT201270 i have just updated my old 3GS and now when i am on restore the window is comming up and asking for a password. i have not set up a password for restore, please help how i can restore my date???

    i have just updated my old 3GS and now when i am on restore the window is comming up and asking for a password. i have not set up a password for restore, please help how i can restore my date???

    capriz wrote:
    i have just updated my old 3GS ...
    To what... iOS 7 is Not supported on the 3 GS

  • Please Help,how do i get my iphone 4 to play all my songs from icloud, it is currently only playing just a smal number of songs from my library which is stored in icloud.

    Please Help,how do i get my iphone 4 to play all my songs from icloud, it is currently only playing just a smal number of songs from my library which is stored in icloud.

    There are a number of OS X apps, many free, that will save your messages, allowing to view and print them. 
    http://www.softwarebbs.com/wiki/How_to_transfer_SMS_from_iPhone_to_Mac,_backup_i Phone_SMS_message_on_Mac
    Google, for other options
    Your "other" of 6 GB may include corrupted data or file sytem errors. If after removing the messages there is still >2GB, you will need to restore the phone in iTunes, first using a backup (made after deleting the messages) and if needed as a new iPhone.
    iTunes: Restoring iOS software

  • I bought a used iphone from a friend and I am not able to use it in Ethiopia. It is carrier blocked. Can you please help how could I unlock my iphone 4?.

    I bought a used iphone from a friend and I am not able to use it in Ethiopia. It is carrier blocked. Can you please help how could I unlock my iphone 4?.

    Unlikely as you do not meet there requirements for unlocking.
    Have your friend the provided the phone contact them.  Based on your statements I am concluding he was or still is an AT&T customer, that is one of the requirements of getting the device unlocked.

  • For updation of IOS 7.1.1 passcode required,I forget my passcode please help how can I get my passcode

    Hello,
    I forget my passcode please help how can I get my it

    You will need to try to restore your iPad from the same computer that you most recently synced to.
    Read this: http://support.apple.com/kb/ht1212
    If you can't do the restore then you will need to try Recovery Mode.
    Read this: http://support.apple.com/kb/ht1808
    Follow the instructions very carefully.

  • Please help me out with the function code of print option in module pool

    please help me out with the function code of print option in module pool, along with CASE condition.
    regards,
    asif

    Hi
    you can use the Function module
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING
        destination            = 'LP01'                       "'Printer name
        list_name              = 'TEST'
        list_text              = 'SUBMIT ... TO SAP-SPOOL'
        immediately            = ' '
        line_size              = '2000'
        no_dialog              = 'X'             "pass space to Pop screen for Print option
      IMPORTING
        out_parameters         = wa_pri_params
        valid                  = w_valid.
    "next call below things
      NEW-PAGE PRINT ON NO DIALOG PARAMETERS wa_pri_params.
         "and try to Print the values inside the new-page
      NEW-PAGE PRINT OFF.
    Prabhudas

  • Cannot activate my viber after i update to 6.1.3 iphone 3gs..can u please help me...the the code is ok but if i activate...its being error.

    cannot activate my viber after i update to 6.1.3 iphone 3gs..can u please help me...the the code is ok but if i activate...its being error.

    @theViberTeam .
    I'm having trouble with Viber.
    A few days ago, I accidentally uninstalled it on my IPhone 4, and reinstalled it later on..
    When I tried sending the activation code using the same cell phone number I had on Viber before It got uninstalled, I receive the code but when I try to put it in it keeps saying that I entered the wrong activation code, I click on the no code feature on the top right corner of Viber, it gives me a code, but when I put that code in it says the same thing ,that I have the wrong access code please try again, and so I researched on the internet and came up to this post, It said to uninstall viber and wait 24 hours to install it again, I waited 24hours and tried it again, but it STILL does the same thing. and... I even tried entering my other phone number, yet it does the same thing and shows me the same message that I entered the wrong access code....It is getting frustrating! May you please Help ME?! What can I do??

  • I have windows 8 and I got this error "Adobe Photoshop has stopped working" whenever I start a program. please help. how can I fix this problem? many thanks

    i have windows 8 and I got this error "Adobe Photoshop has stopped working" whenever I start a program. please help. how can I fix this problem? many thanks

    Please read these and proceed accordingly:
    http://blogs.adobe.com/crawlspace/2012/07/photoshop-basic-troubleshooting-steps-to-fix-mos t-issues.html
    http://forums.adobe.com/docs/DOC-2325

  • I want to cahage my peyment method ( i wana do take out my credit card  from there) please help how???

    want to cahage my peyment method ( i wana do take out my credit card  from there) please help how???

    You can't change to 'None' until you clear up the previous payment problem.  Add a fresh iTunes gift card, or add a credit card, and then once the billing issue clears, you can choose 'None' again.

Maybe you are looking for

  • Dynamic tabs in Tomahawk panelTabbedPane

    I want to create a t:panelTabbedPane with a dynamic number of tabs. It's quite straightforward if implemented in a backing bean:   <t:panelTabbedPane binding="#{MyBean.tabbedPane}"/>   public class MyBean {     public HtmlPanelTabbedPane getTabbedPan

  • Error in EA00 - EITR Billing Document No. does not exist

    Hi Experts, I am tryign to Final bill a moved out contract for the dates 16.05.2007 to 31.12.2008. The joint invoicing condition is 1. When I try to bill these billing documents through EA00 I am getting the Error "EITR <Billing Do. no.> A does not e

  • What build 11G63b indicates after 10.7.5 update/s?

    i had os x 10.7.4 and updated it via software update, now at about this mac it shows version 10.7.5 and clicking on it shows build 11G63b. i know apple inroduced another update after its 10.7.5 update, i mean the 10.7.5 supplemental update which is n

  • How about implement queryResult.size() by "select count(*)..."

    Since the size() method often occupies much resource and slow down speed greatly, why not implement it by "select count(*) from ..." instead of "resultSet.last()"? I think when executing a query, a Query will remember the actual SQL executed, and mod

  • How to start single box installation

    Hi I've downloaded the 3 files for linux single box instalation(9.0.4.1), but I have problems to continue with installation, I hava an error that say that he cannot find .rsp files por storage/midtie/infra I think I'm making something wrong uncompres