function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Raju Sudheer 3Raju Sudheer 3 

how do u use static resource in VF page

Ajay K DubediAjay K Dubedi
Helo Raju,
You can use static resources in thes ways but first of all you have to upload these resorces as a static resource in salesforce.
<apex:image url="{!$Resource.TestImage}" width="50" height="50"/>
 
<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')}"/>
 
<apex:stylesheet value="{!URLFOR($Resource.style_resources, 'styles.css')}"/>
Thanks.