Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Where to put jQuery?Where to put jQuery?
Previous
 
Next
New Post
9/9/2012 2:21 PM
 

Thanks!  I'm trying to change an image on page load but even with the registration, it doesn't seem to be working.

My img has the id "RandImg'"  A simple $('#RandImg').css('src', 'url("images/image1.png")'); is all I'm trying to do. (i just want to set the image first. I figure, if I can't get that to work, I'm not going to bother with the rest of the script.) I've place your vb script at the top, just under the other registrations. But I get nothing. Any ideas?

Full script:

   (function ($) {
        $(document).ready(function () {
             $('#RandomImagePane').css('background-color', '#000000');
                x');
        });   
 })(jQuery);

The alert works just fine but it's plain javascript, not jquery.

 
New Post
9/9/2012 4:05 PM
 
I seem to be missing something when posting code snippets as well. Oh, and i realize I posted the background color change line in stead of the image change. But that's not working either. The image line should have been...
$('#RandImg').css('src', 'url("images/image1.png")');
 
New Post
9/9/2012 5:31 PM
 

I only posted a snipeset of the complete code to demonstrade you how to Register jQuery and putting your code into a Skin.  The div´line with teh Images are missing in my snipset.

A complete code you can get from my source code on the Metro Skin, where I included a banner slider using jQuery.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Where to put jQuery?Where to put jQuery?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out