Jump to content

js code problem


dgnzcn

Recommended Posts

hi,

i combined two js code in one, gradient slider wroking and changed codes in  text area. this is ok. but gradient colors can not displaying in textarea and also horizontal and vertical menu can not changing colors and codes.

 

what is my wrong ?

lY4yQb.jpg





<div class="export"> <textarea name="baslikrengi_<?php echo $cnt1; ?>" cols="32" class="export" id="baslikrengi_<?php echo $cnt1; ?>"><?php echo KT_escapeAttribute($row_rskayan_icerikler['baslikrengi']); ?></textarea></div>




 

<select id="orientation" onchange="changeOrientation();">
<option value="horizontal">Horizontal</option>
<option value="vertical" selected="selected">Vertical</option>
</select>

<div class="gradient3"></div>
<script>


$(document).ready(function(){
    $('.gradient3').ClassyGradient({                                
        gradient: '#00ffff 0%,#008900 30%,#f00044 70%,#0042d2 100%',
        onChange: function(stringGradient,cssGradient) {
            $('.export').val(cssGradient);
        }
    }); 
});
$(document).ready(function() {
    $('.gradient3').ClassyGradient({
        gradient: '#ebf1f6 0%,#ff9cff 40%,#ff6aff 61%,#ff2db7 100%',
        target: '.export'
    }); 
});
function changeOrientation() {
    var orientation = $('#orientation :selected').val();
    $('.gradient3').data('ClassyGradient').setOrientation(orientation);
}
</script


<script>
$(document).ready(function() {
$('.gradient').ClassyGradient();
});
</script>
Edited by dgnzcn
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.