random background img

Jonas's Avatar

Jonas

09 Apr, 2014 11:47 AM

Hi,
I have a little script (jquery) randomly loading an image and setting it as background style.

Where would be the insert point of
A) loading jquery (with no conflict options)
B) the script itself
C) the image div?

I can neither find smth. like a nor a tag

Cheers!

  1. Support Staff 1 Posted by Uldis on 09 Apr, 2014 02:23 PM

    Uldis's Avatar

    Hi Jonas,
    1) custom javascript code can be inserted under "settings - other settings - Javascript include" field.

    Example:

    <script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
    <script>
    //your code here
    </script>
    

    HTML code like

    etc. can be inserted through entry text editor, you will find the button "html" at the top right corner of editor window.

    This is for advanced users only :)

  2. Uldis closed this discussion on 09 Apr, 2014 02:23 PM.

  3. Jonas Loh re-opened this discussion on 10 Apr, 2014 11:37 AM

  4. 2 Posted by Jonas Loh on 10 Apr, 2014 11:37 AM

    Jonas Loh's Avatar

    Hi,

    thanks for your help, appreciate it.

    Funnily I don’t have a create new entry on my start page and when I click the pencil icon nothing happens.
    Do you have any idea why this might be?

    Cheers!

    Am Mittwoch, 9. April 2014 um 16:23 schrieb uldis.rudzitis:

  5. Support Staff 3 Posted by Uldis on 10 Apr, 2014 12:06 PM

    Uldis's Avatar

    What's the address of your website?

  6. Uldis closed this discussion on 14 Apr, 2014 06:12 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac