Log in

View Full Version : Way to add html formats for image viewers script or macro?



mylcorp
04-13-2013, 05:02 PM
Please, no php (my server does not support)

When using any image viewers all image must be manually added. Example from Image viewer script:


<a href= "http://your url .com/0001.jpg"
rel="thumbnail"><img style="HEIGHT: 125px"
src="http://your url.com/0001.jpg"></a>

Format can be copied and pasted for additional images, but must be manuallly edited

<a href= "http://your url .com/0002.jpg"
rel="thumbnail"><img style="HEIGHT: 125px"
src="http://your url.com/0002.jpg"></a>

Does anyone have script or macro that would automatically increase selected variable to next integer using a text editor like word or Openoffice?


<a href= "http://your url .com/<previous + 1>.jpg"
rel="thumbnail"><img style="HEIGHT: 125px"
src="http://your url.com/<previous +1>.jpg"></a>

It is easy to rename images with successive integers (Photoshop) this would save a lot of time for galleries with many images.

Beverleyh
04-13-2013, 05:18 PM
I believe you already have this question in another thread, which has been answered: http://www.dynamicdrive.com/forums/showthread.php?73561-Thumbnail-Viewer-Script-pops-up-behind-navigation-menu

traq
04-14-2013, 03:28 AM
I'm closing this since this question was already answered in your other thread (http://www.dynamicdrive.com/forums/showthread.php?73561-Thumbnail-Viewer-Script-pops-up-behind-navigation-menu), and there is no new info here.
If you need to ask anything more on this same topic, please post in your original thread.

However,

using a text editor like word or Openoffice?

I feel it necessary to point out that these programs are not text editors.

They are word processors; their primary purpose is to allow rich formatting of text and documents.

The whole reason coders use a text editor is to make sure the file is written with plain text, because formatting causes problems in code. A common example of this problem is that MS Word uses "smart quotes": it automatically converts normal quotation marks to left/right quotation marks (i.e., "smart quote" becomes “smart quote”), which breaks your HTML (and other code that relies on quotation marks for syntax).

For coding, it is always best to use an actual plain text editor. There are plenty of options. Look into FREE programs like Notepad++, Gedit*, TextWrangler, or Komodo*^.

* cross-platform (Linux/Mac/Windows)
^ my current favorite - highly recommended!