<apex:includeScript value="{!$Resource.MyJavascriptFile}"/>
<apex:image url="{!URLFOR($Resource.TestZip, 'images/Bluehills.jpg')}" width="50" height="50"/>
<apex:includeScript value="{!URLFOR($Resource.LibraryJS, '/base/subdir/file.js')}"/>
table { background-image: url('img/testimage.gif') }
<apex:stylesheet value="{!URLFOR($Resource.style_resources, 'styles.css')}"/>
global class MyController { public String getImageName() { return 'Picture.gif';//this is the name of the image } }
<apex:page renderAs="pdf" controller="MyController"> <apex:variable var="imageVar" value="{!imageName}"/> <apex:image url="{!URLFOR($Resource.myZipFile, imageVar)}"/> </apex:page>