How to Delete Spry

If you want to delete Spry from your HTML page, it's important to know what files and code are added to your page when you insert a Spry widget. If you are using Dreamweaver CS3 or CS4 to construct your site, the software will automatically attach a JavaScript file, which contains code to control the widget's behavior, and a CSS file, which sets the appearance of the widget. When you delete Spry, you need to delete all of the code and dependent files. It takes only a few steps.

Things You'll Need

  • Dreamweaver CS3 and CS4
Show More

Instructions

    • 1

      Open the HTML page that has the Spry object you want to delete.

    • 2

      Select your Spry widget with your mouse. To do this, look for the turquoise tab at the top of your Spry widget. If you are deleting a Spry accordion widget, the text within this tab will say something like "Spry Accordion: Accordion 1." Click on this turquoise tab to select the entire widget.

    • 3

      Press "Delete" to eliminate the Spry widget and its dependent files.

    • 4

      Check to make sure you deleted all the Spry code and dependent files. To check if you deleted the JavaScript and CSS files, switch to code view in your HTML file. If you're deleting a Spry menu, look in your <head> section for code that resembles <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script> and <link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />. Another way to perform this task is to open your main Web site folder to see if these files are in your Spry Assets folder. Delete this code or files if they are still there.

    • 5

      Check your <body> section to see if there is remaining code of your Spry menu and delete that as well.

Tips & Warnings

  • If you delete your Spry widget without eliminating the dependent files, Dreamweaver will display an error message saying there are Spry files attached to a nonexistent object when you reopen that HTML file. Dreamweaver will ask if you want to delete the dependent files. Check your code and Spry assets folder first to verify you are deleting the correct items.

Related Searches:

References

Comments

You May Also Like

Related Ads

Featured