0

I have peel.js file it has located in root directory (e.g. http://mydomain.com/wordpress/wp-content/themes/anbo/peel.js).

I have called two image from peel.js file, but images not called otherwise not working.

My code:

smartredfox.small_image = 'small.jpg';
smartredfox.big_image = 'large.jpg';

smartredfox.small_path = 'small.swf';
smartredfox.big_path = 'large.swf';

I need help for call the image, otherwise need code for check whether images working or not.

1 Answer 1

1

Your code is just assigning strings, it does not "call" any image.

To actually load the image and show it, have such code:

smartredfox.small_image = 'small.jpg';
$("<img />").attr("src", smartredfox.small_image).appendTo("body");

Live test case.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.