Looking for a Script in a library to change fleet

Does anyone know of a resource with a Javascript that automatically alternates the properties of float from right to left?

I have a list of books with their covers and the graphics are supposed to switch between 'float right', and 'float left'. My problem is that if a new book is in the middle of my tickets, I have to go through all the entries below a new and swap right left. It seems that there should be a script to do this automatically, but I'm just starting to use Javascript in my creations and I am unable to design one myself.

Use of Pseudo-selecteurs nth child CSS.  This will work even if JS is disabled.

http://CSS-tricks.com/how-nth-child-works/

Assuming you are using tags to paragraph for floating containers, your code might look like this:

{p:nth-Child(ODD)}

Clear: right;

float: left;

Width: 200px;

}

{p:nth-Child(even)}

Clear: left;

float: right;

Width: 200px;

}

left float

right float

left float

right float

Nancy O.

Tags: Dreamweaver

Similar Questions

  • I'm looking for a script for a list of all IIS servers in a domain?

    I'm looking for a script VB list all IIS servers (IIS5 and 6) in a field?  If possible, the output contains the version of the IIS server.

    Thank you!

    Try asking in the IIS forums...
    http://forums.IIS.NET/

  • Looking for a script or plug-in

    Greetings from the scope,

    I'm looking for a script or a plug that can cut a layer (even if it only works on a form or a solid) and cut in non-uniform shapes or masks.

    I looked around and found a couple of things, but nothing that creates non-uniform shapes.  Think like a random shocks, except the script would create non-uniform shapes or masks of the initial or solid form.  I hope that makes sense.

    \Thanks,

    Paul

    Maybe it would work. Set up a document Illustrator the size of the layer you want to split into triangles. Create a rectangle. Switch to the line tool and draw a bunch of lines crossing the rectangle using the bearings commented to align the edges and vertices.

    Select all and then use the pathfinder - fracture for a group:

    Select the layer group and sequence layers allows to separate all the triangles in layers:

    Drag each new layer above layer 1 and import the file HAVE as a model to get perfectly matching triangles

    One is irrelevant, so you can see them. Another option would be to select all and copy and then go to the AE and paste to create a mask for each of the forms.

    It takes about 2 minutes.

  • I'm looking for a Script that can list all virtual machines with type of NIC E1000 via the output of the CSV file.

    Hi gurrus and LucD

    I'm looking for a Script that can list all virtual machines with type of NIC E1000 via the output of the CSV file.

    The script should search for information in a multiple Vcenter servers and multiple clusters and list all the VMs name, status (two powers on or off) with type card NETWORK Type E1000 only no other.

    Concerning

    Nauman

    Try like this

    $report = @)

    {foreach ($cluster Get-cluster)

    foreach ($rp in Get-ResourcePool-location $cluster) {}

    foreach ($vm in (Get-VM-location the $rp |)) Where {Get-NetworkAdapter - VM $_______ | where {$_.}} Type - eq "e1000"}})) {}

    $report += $vm. Select @{N = "VM"; E={$_. Name}},

    @{N = 'vCenter'; E={$_. Uid.Split('@') [1]. "Split(':') [0]}},"

    @{N = "Cluster"; E = {$cluster. Name}},

    @{N = "ResourcePool"; E = {$rp. Name}}

    }

    }

    }

    $report | Export Csv C:\temp\report.csv - NoTypeInformation - UseCulture

  • Looking for a Script to extract information for a virtual machine

    HiEvryone

    Looking for a Script pull information for a virtual of VC machine what operating system installed (2003, 32-bit or 64-bit, 2008 etc), vCPU and memory allocated and State. Output in CSV format.

    Thank you

    vmguy

    You mean something like this

    Get-VM |
    Select Name,NumCpu,MemoryMB,PowerState,@{N="OS";E={$_.Guest.OSFullName}} |
    Export-Csv "C:\report.csv" -NoTypeInformation -UseCulture
    
  • Looking for a Script to check the current status of the VM tools based on resource pool (customer name)

    Hi all and

    LucD The champion!

    I'm looking for a power-cli script to verify the State of VM-tools of all the virtual machines in the cluster multi environment. Could you please help me on this. It would be really appreciated.

    Thank you. in advance.

    Concerning

    Nauman

    Try like this

    $report = @)

    {foreach ($cluster Get-cluster)

    foreach ($rp in Get-ResourcePool-location $cluster) {}

    foreach ($vm in (Get-VM-location the $rp)) {}

    $report += get-disk hard - VM $vm |

    Select @{N = "Cluster"; E = {$cluster. Name}},

    @{N = "ResourcePool"; E = {$rp. Name}},

    @{N = "VM"; E = {$vm. Name}},

    @{N = 'Tools status'; E = {$vm. ExtensionData.Guest.ToolsStatus}},

    @{N = 'HD'; E={$_. Name}},

    @{N = "Datastore"; E={($_. Filename.Split(']') [0]). TrimStart('[')}},

    @{N = 'Filename'; E={($_. Filename.Split('_') [1]). "Split('/') [0]}},"

    @{N = 'Path VMDK'; E={$_. File name}}.

    @{N = "Format"; E={$_. StorageFormat}},

    @{N = ' Type'; E={$_. DiskType}},

    @{N = "CapacityGB"; E={$_. CapacityGB}}

    }

    }

    }

    $report | Export Csv C:\temp\report.csv - NoTypeInformation - UseCulture

  • Looking for perl script find the coordinates of the VM

    Hi all

    I am looking for a perl script (e.g. - vminfo.pl) to find the VM details including the ESX Server that works of VM. If I have a script I can use VIPerlToolkit utilities to ' run the script from any of the machines Linux... can someone please help me with script

    Concerning

    Lucette

    Take a look at the whichClusterIsMyVmIn.pl (http://communities.vmware.com/docs/DOC-10439) script in the repo that provides both the host ESX (i) the virtual machine is hosted on as well as the cluster vCenter.

  • Looking for powershell script to view the path data store policy

    Basically, I'm looking for the equivalent of powershell with esxcfg-mpath-l.

    Any help would be appreciated.

    Try the attached script.

  • Looking for MC1496 - any custom component library?

    Hey all,.

    I'm trying to simulate the modulator/demodulator signal MC1496 chip. It seems that this is not standard with Multisim. I was wondering if there was like a library of custom components that the community has put in place (or something of the sort).

    I have the part for LTSPICE but (seeing as how I use Multisim for a grand total of half an hour) am not completely confident in my abilities to make imported and put in place correctly. If someone else more experienced with Multisim, I have already made it would be infinitely preferable.

    Thank you very much.

    As far as I can tell here, the problem is the mapping of the spindle between the symbol and the model. The .subckt uses only the 10 pins, but the symbol has 14. The symbol for the model mapping pin, you have the default assignment - all 14 pins symbol assigned to the nodes of the model.

    Based on the .subckt line and the way you have the component cable for the schema, it looks like pins 7, 9, 11 and 13 are not used. You will need for those like 'Not connected' (NC) in the mapping table, correct the remaining pins (PIN symbol 8 will actually be the 7th model node, pin 10 is the 8th node, pin 12 9th node and PIN 14 will be the 10th node - ideally this subcircuit uses the pins in order, it just jumps).

    That should fix the mistake of simulation. The error was just because he was trying to use 14 knots for a .subckt of 10 knots. (u1_open_11 is just the name that has been attributed to the simulation of pin 11 node because the mapping of the model says to use it, but nothing connected).

  • Looking for a Script that contains information of BONES in each pool resources in a cluster environment

    LucD

    I am you are looking to modify a script that also contains information of BONES in each pool resources in a multi below cluster environment. Type of operating system, details as much as possible on each VDC OS information in an environment of Cloud Computing of v. I want to understand the news of the BONE in the script below. What kind of changes I need to do in the script below. Help, please. Thanks in advance.

    $report = @)

    {foreach ($cluster Get-cluster)

    foreach ($rp in Get-ResourcePool-location $cluster) {}

    foreach ($vm in (Get-VM-location the $rp)) {}

    $report += get-disk hard - VM $vm |

    Select @{N = "Cluster"; E = {$cluster. Name}},

    @{N = "ResourcePool"; E = {$rp. Name}},

    @{N = "VM"; E = {$vm. Name}},

    @{N = 'Tools status'; E = {$vm. ExtensionData.Guest.ToolsStatus}},

    @{N = 'HD'; E={$_. Name}},

    @{N = "Datastore"; E={($_. Filename.Split(']') [0]). TrimStart('[')}},

    @{N = 'Filename'; E={($_. Filename.Split('_') [1]). "Split('/') [0]}},"

    @{N = 'Path VMDK'; E={$_. File name}}.

    @{N = "Format"; E={$_. StorageFormat}},

    @{N = ' Type'; E={$_. DiskType}},

    @{N = "CapacityGB"; E={$_. CapacityGB}}

    }

    $report | Export Csv C:\temp\report.csv - NoTypeInformation - UseCulture

    }}

    You're missing ExtensionData starting from the operating system objects, i.e.

    @{N = ' configured OS"; E = {$vm. } ExtensionData. Config.GuestFullName}},

    @{N = 'Running OS'; E = {$vm. } ExtensionData. Guest.GuestFullName}}

    I think that what you mean by "auto-fill" is that the application that you use to open the csv file, for example MS Excel does not automatically the full content of each field that the column widths are too narrow. A csv file is a text file with each value separated by a comma, try opening the file in a text editor such as Notepad to see.

  • Looking for a script based on values

    Hi all

    I was wondering if someone might be able to help with a script (I guess) to populate a field based on the value of another field.

    What I want is;

    If 'A field' had a value of 0.1 or 2 then 'field B' will automatically get a C

    If 'A field' had a value of 3 or 4, then 'field B' would get automatically a and B

    If 'A field' had a value of 5 or more then 'field B' will automatically get an A


    I know that this is probably a simple script but I have no idea how to reach and when I look at 'how to' books I can't understand how to create.


    Thank you in advance.

    Hello

    When you say: ".. masse automatically get a C' means 'field B' should get some 'field C' value present in pdf form or a string of characters "C"?

    Based on what I understand it please try the following:

    Set Variables for text fields

    var a = this.getField ("Text1");

    var two = this.getField ("Text2");

    if(One.Value == null)

    Two.value = ";

    ElseIf (one.value == 0 | one.value = 1 | one.value == 2).

    Two.Value = 'C ';

    ElseIf (one.value == 3: one.value == 4)

    Two.Value = 'B ';.

    ElseIf (one.value > = 5)

    Two.Value = "A";

    If you want to set the value on the basis of another value instead of the string, and then only the changes that you need to do is use the variable of this field.

    For example,.

    Another variable, the value

    var 3 = this.getField ("Text3");

    Two.Value = three.value;

    I would like to know if it works for you.

  • Looking for a script to activate areas of unique text around a circle

    Hey everybody,

    I have about 700 text boxes that must be placed around a circle.n.png

    Any ideas would be great

    Thank you

    Yes YOU CAN! I believe in you. So much and so well, that I made this example script and results of screenshots!

    #target illustrator
    function test(){
        var theTextArray = [
            "Capricorn 1",
            "Capricorn 2",
            "Capricorn 3",
            "Capricorn 4",
            "Capricorn 5",
            "Capricorn 6",
            "Capricorn 7",
            "Capricorn 8",
            "Capricorn 9",
            "Capricorn 10",
            "Capricorn 11",
            "Capricorn 12",
            "Capricorn 13",
            "Capricorn 14",
            "Capricorn 15",
            "Capricorn 16",
            "Capricorn 17"
        ];
    
        var doc = app.activeDocument;
        var myTurnAngle = -8.5;
        var textMachine = doc.groupItems.getByName("TextMachine");
        var theTextBox = textMachine.textFrames[0];
    
        for(var i=0; i
    

    Come to think of it, you could have found a way to duplicate your unique textframe around a point (can do so via the transform effect and an additional element as a circle enclosing, after which the text can be disconnected scum once the effect is expanded) and used a different method to simply replace the contents of each text box in a selection...
    But, anyway, this seems to work perfectly, check out my results!

  • Looking for a Script add lines in several places in a Table

    Hi all!

    I'm new to InDesign Scripting and I was hunting around trying to find something that would possibly work, and I can't quite find it. I hope someone can help!

    I have a book that has tons of tables in it. They are all from the same table. 2 columns on 10 lines. Here's my dilemma:

    My client wants to add new lines to these tables, specifically:

    • A new line at the beginning of the table
    • A line after the already established 3rd row
    • 3Rows after the already established 9 line

    Is it still possible with a script?

    (I talk about "established" line, because I do not know if once the script adds the first rank at the top of the screen if this then that the numbers from the rest of the lines - and so on, as others are added.)

    Any help would be appreciated.

    Hello

    What is a book for you? A single document or a real Indesign-book-file with multiple documents?

    A single document:

    var curDoc = app.activeDocument;

    var allTables = curDoc.stories.everyItem ().tables.everyItem () .getElements ();

    for (var t = 0; t)< alltables.length;="" t++="" )="">

    var curTable = allTables [t];

    var allRows = curTable.rows;

    curTable.rows.add (LocationOptions.AFTER, allRows [8]);

    curTable.rows.add (LocationOptions.AFTER, allRows [8]);

    curTable.rows.add (LocationOptions.AFTER, allRows [8]);

    curTable.rows.add (LocationOptions.AFTER, allRows [2]);

    curTable.rows.add (LocationOptions.AT_BEGINNING);

    }

    Several documents in a book file:

    This assumes that the file only one book is open!

    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.neverInteract;

    var curBook = app.books [0];

    var allDocuments = curBook.bookContents;

    for (var n = 0; n)< alldocuments.length;="" n++="" )="">

    var curDoc = app.open (file (.fullName allDocuments [n]));

    var allTables = curDoc.stories.everyItem ().tables.everyItem () .getElements ();

    for (var t = 0; t)< alltables.length;="" t++="" )="">

    var curTable = allTables [t];

    var allRows = curTable.rows;

    curTable.rows.add (LocationOptions.AFTER, allRows [8]);

    curTable.rows.add (LocationOptions.AFTER, allRows [8]);

    curTable.rows.add (LocationOptions.AFTER, allRows [8]);

    curTable.rows.add (LocationOptions.AFTER, allRows [2]);

    curTable.rows.add (LocationOptions.AT_BEGINNING);

    }

    Optional

    curDoc.save ();

    curDoc.close ();

    }

    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;

  • looking for a script to the list of virtual machines by datastore

    Someone at - it a script that lists each data store, then the virtual machines that are on it. Or maybe the list all virtual machines and data store or data warehouses is located in the virtual machine?

    Thank you

    This should do the trick for you.  In fact, it extends the computer object complete virtual with a property data store so you can still search the other aspects of the virtual machine.

    Get-Datastore. WHERE-object {$_.} {Name - like "DMX *"} | {ForEach-Object

    $dsname = $_. Name

    $_ | Get - VM | {ForEach-Object

    $($_ | Add - Member MemberType NoteProperty-name of store data-value $dsname - PassThru) | Select-object Name, host, Datastore

    }

    }

  • looking for a script to warn on low disk space

    Hello

    Newbye kind when it comes to scripts. I would like to be alerted by SMTP when the ESX scores are low on space.

    Thank you

    Since there is currently no cmdlets so that you would have to use something like plink and perform a df, capture the output and send an e-mail when the threshold is exceeded.

    There are a few threads in this community on the use of plink.

    Make sure that sudo is configured correctly for the account that you use on the plink command.

    This script should do the trick.

    $User = 
    $Pswd = 
    $treshold =  # Used % threshold. Number between 1-100.
    
    $partitionUsage = [regex]"^(/dev/\w+|none)+.*\s(\d+)%\s((/\w*)+)"
    
    $plink = "\plink.exe"
    $plinkoptions = " -v -batch -pw $Pswd"
    $cmd1 = 'df'
    
    $remoteCommand = '"' + $cmd1 + '"'
    $command = $plink + " " + $plinkoptions + " " + $User + "@" + $ESXname + " " + $remoteCommand
    
    $msg = Invoke-Expression -command $command
    
    $report = @()
    foreach($line in $msg){
         $hit = $partitionUsage.Matches($line)
         if($hit -ne $null){
              if([int]$hit[0].Groups[2].Value -gt $treshold){
                   $row = "" | select Device, MountPoint, Percentage
                   $row.Device = $hit[0].Groups[1].Value
                   $row.MountPoint = $hit[0].Groups[3].Value
                   $row.Percentage = [int]$hit[0].Groups[2].Value
                   $report += $row
              }
         }
    }
    $SmtpClient = New-Object system.net.mail.smtpClient
    $MailMessage = New-Object system.net.mail.mailmessage
    $SmtpClient.host = 
    $MailMessage.from = 
    $MailMessage.To.add()
    
    if($report -ne $null){
         $MailMessage.Subject = $ESXname + " - COS partitions above threshold"
         $MailMessage.body = ($report | Out-String -width 60)
    }
    else{
         $MailMessage.Subject = $ESXname + " - All COS partitions are below threshold"
    }
    $SmtpClient.Send($MailMessage)
    

    You can schedule the script with the Windows Task Scheduler.

Maybe you are looking for

  • Newly installed Firefox, does not remember password for all the

    I just installed Firefox 12 on a new computer and after the first password, he stopped to remember the other passwords, nor doe he asks me if I want to save them. I'm not in private browsing mode, and the "Remember password" box in the Options is che

  • How to delete photos from my i phone 6 but keep them on my i mac

    How to delete photos from my i phone 6 but keep them on my i mac os x

  • View and change the elements of the array

    Hello I'm using LabVIEW to read a set of parameters of an instrument and display them in a table indicator. This first part is pretty easy and works very well. I want to be able to do (so far unsuccessfully) is to change certain values directly on th

  • Compact rio fifo

    I tested the FIFO DMA method without success. I copied the example of OR and you can see the target and the attached Hostcode. I read a 4 channels/a. 9234. What I get is nothing and I get a FIFO overflow every time. (which prevents the host program).

  • Windows Update Code 800706BE error

    Windows Update does not list the updates it needs.  She returns an error code 800706BE - Windows Update encountered an unknown error. Also, I constantly get pop - ups that say 'Windows Modules Installer has stopped working". I tried to install a stan