Javascript that shows an internal image
1SITE manages automatically all kinds of link and images. In case you want to write portions of custom code, it is often useful to refer to internal objects within your code. You can handle this by placing “dynamic references”, visually. In other words, you simply tell to 1SITE where to place the name of an image or of a link in the code, and that name will be inserted on-the-fly, when the HTML pages are actually generated. This way, the reference is always up to date, avoiding the need of manual maintenance of the script.
It is possible to place dynamic references to internal objects in any Javascript portion. In the following example we place a reference to this image:
The Javascript is here: (open this file in the editor, you find it in the es_aeh folder).
To see / modify the Javascript, use the right mouse button over the icon, and “Properties”. "Insert >Script Java/VB >Within text" to insert another script.
If you choose “Properties” to see the script, you will see an icon in the script text. This icon means a reference to an internal image. You can select/ change/ add the image visually, with a double click.
To see the current page working, you need to export in Html, to publish with Ftp, or to use "Publish >Browser preview".
1site is the king of the web site creator software: a professional web site design program. If you need a good web page creator software for creating your own website, look no further. With 1site you can create your personal or business pages with ease, and you can update and maintain your Internet presence quickly (and, for 1site, quick does not mean that the product is limited, it is not). Free from complications, programming, HTML... the fastest and more productive website environment ever designed (your time is precious: the program manages the boring things, not you). 1Site is the best web editing web building tool out there.
Get it now!
We have also these programs:
For other languages we have: