Title: Javascript call
Last modified: August 19, 2016

---

# Javascript call

 *  [LumBenny](https://wordpress.org/support/users/lumbenny/)
 * (@lumbenny)
 * [17 years ago](https://wordpress.org/support/topic/javascript-call/)
 * Help on the below would be greater, ready to cry!
    links are [http://lumlighting.com/wordpress/lum/?page_id=152](http://lumlighting.com/wordpress/lum/?page_id=152)
   [http://lumlighting.com/images/talk.js](http://lumlighting.com/images/talk.js)
 * WordPress is turning the following script
 * <script>
    if (linkornot==1) document.write(‘[‘) document.write(‘<img src=”‘+photos[
   0]+'” name=”photoslider” style=”filter:revealTrans(duration=2,transition=23)”
   border=0>’) if (linkornot==1) document.write(‘‘) </script>
 * to (notice the ‘ instead of ‘)
 * <script>
    if (linkornot==1) document.write(‘[‘) document.write(’<img src=”‘+photos[
   0]+'” name=”photoslider” style=”filter:revealTrans(duration=2,transition=23)”
   border=0>‘) if (linkornot==1) document.write(’‘) </script>

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [RockyMtnHi](https://wordpress.org/support/users/rockymtnhi/)
 * (@rockymtnhi)
 * [17 years ago](https://wordpress.org/support/topic/javascript-call/#post-1083144)
 * Inline Javascript is bad for SEO, so you should always use an include like this:
   
   <script type=”text/javascript” src=”[http://yoursite.com/scripts/jsfile.js”></script&gt](http://yoursite.com/scripts/jsfile.js”></script&gt);
 * Place your code into the scripts folder in a file named jsfile.js and it will
   execute when you want. Make sure to not use <script> delimiters in that file.
 *  [stvwlf](https://wordpress.org/support/users/stvwlf/)
 * (@stvwlf)
 * [17 years ago](https://wordpress.org/support/topic/javascript-call/#post-1083160)
 * I have been using this plugin
    [http://gonahkar.com/wordpress-plugins/custom-fields-shortcode/](http://gonahkar.com/wordpress-plugins/custom-fields-shortcode/)
 * to enter code as a custom field, and inserting it into the post as a shortcode.
   Has worked well

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Javascript call’ is closed to new replies.

## Tags

 * [image](https://wordpress.org/support/topic-tag/image/)
 * [java](https://wordpress.org/support/topic-tag/java/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [stvwlf](https://wordpress.org/support/users/stvwlf/)
 * Last activity: [17 years ago](https://wordpress.org/support/topic/javascript-call/#post-1083160)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
