var slider = function(q){ var slides = document.querySelectorAll(q + ' div'); }
slider('.slider1');
slider('.slider2');
$('a.trigger').click(function() {
var $select = $('<select>');
$select.attr({
name: 'location_to',
id: "to' + i + i'",
class: 'text_add'
});
$('<option>').text('-- Please Select --').appendTo($select);
$('<option>').text('-- Other --').appendTo($select);
$select
.appendTo('._to_price')
.fadeIn('slow')
.dependentSelects({ separator: ' || ', placeholderOption: '-- Please Select --' });
});
function SelectTransparency() {
var idChnl = charIDToTypeID( "Chnl" );
var actionSelect = new ActionReference();
actionSelect.putProperty( idChnl, charIDToTypeID( "fsel" ) );
var actionTransparent = new ActionReference();
actionTransparent.putEnumerated( idChnl, idChnl, charIDToTypeID( "Trsp" ) );
var actionDesc = new ActionDescriptor();
actionDesc.putReference( charIDToTypeID( "null" ), actionSelect );
actionDesc.putReference( charIDToTypeID( "T " ), actionTransparent );
executeAction( charIDToTypeID( "setd" ), actionDesc, DialogModes.NO );
}
var $this = $(this);
var href;
var target_id = $this.attr('data-id');
var target = $this.attr('data-target') || e.preventDefault() || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '');
var option = $(target).data('collapse') ? 'toggle' : $this.data();
$this[$(target).hasClass('in') ? 'addClass' : 'removeClass']('collapsed');
$(target).collapse(option);
if (document.createEvent) {
n = document.createEvent("MouseEvents");
n.initMouseEvent("click", !0, !0, document.defaultView, 1, 0, 0, 0, 0, !1, !1, !1, !1, 1, null);
link.dispatchEvent(n);
} else {
n = document.createEventObject();
n.button = 1;
link.fireEvent("onclick", n);
}
<link rel='stylesheet' href='style.css'>
<link rel='stylesheet' href='<?php if (!$_COOKIE["big"]) { echo "style.css"; } else { echo "bigStyle.css"; }'>
$('#changeBig').click(function () {
document.cookie="big=true; path=/; expires=Mon, 01-Jan-2020 00:00:00 GMT";
location.reload();
});