Customized by default for the img tag

Hi all

I've always used HomeSite for HTML coding in the past, I like the interface and the direct control of the HTML code, however, I'm experimenting with the use of Dreamweaver. While the coding of templates for our email marketing solution [link removed by Moderator] I noticed that when you import images, Dreamweaver is not automatically add the border = '0', the height or width attributes. Y at - control to have these added by default?

Look forward to your responses.

Thank you very much

Pete O'Connell

PeteOConnell wrote:

When you import images, Dreamweaver does not automatically add border = "0", the height or width attributes. Y at - control to have these added by default?

Dreamweaver adds height and width automatically if it can detect the dimensions of the image. However, you have reason it adds not the attribute border, because it is deprecated in HTML.

If you want to change the default behavior, you can do so by editing the JavaScript file that inserts images. In Dreamweaver CS5, this is C:\Program Files (x 86) \Adobe\Adobe Dreamweaver CS5\configuration\Objects\Common\Image.js (Windows) or Applications/Adobe/Adobe Dreamweaver CS5/configuration/Objects/Common/Image.js.

Modifying the files in the configuration folder is relatively simple, if you're careful and you know what you're doing. Make a backup in case you're wrong.

45-49 lines insert the image tag. They look like this:

  if (imgDim){
    rtnStr= '';
  }else{
    rtnStr= '';
  }

Add border = '0', change them like this:

  if (imgDim){
    rtnStr= '';
  }else{
    rtnStr= '';
  }

As you can see, rtnStr in the first half of the conditional statement adds the width and height if they are detected. You can add them to rtnStr in the else clause if necessary.

Tags: Dreamweaver

Similar Questions

  • title in the img tag

    I would like to was a field for the title in the img tag as there is for the ALT. As it is, when I want to put a title on an image, I have to do it in code view.

    For those who don't know, the title tag will create a "tooltip" when someone passes on an image in IE or FireFox. Works well and better than using the 'alt' for a ToolTip. I would use rather 'alt' for a description of the image for screen readers.

    Well, I must admit that I hand code a little, Michael. But I insert images using design mode because it will include the height and width for me.

    And now with the end of the Murray, I found something new. I had never used the tag Inspector, even though I've been in DW 8 years or more...
    Thank you very much! Now back to the creation of 496 pages of product by hand...

  • Satellite L650 - 1 M 0: standard keyboard by default for the backlit keyboard replacement

    Hello

    Can a laptop Toshiba L650 - 1 M 0 can replace the standard keyboard by default for the backlit keyboard?

    Sorry for my bad English, but I used the Google Translator because I do not know how the English language. I only know the Polish ;)

    Please write without mistakes, because the Google translator will be able to translate for me.

    > Can a laptop Toshiba L650 - 1 M 0 can replace the standard keyboard by default for the backlit keyboard?

    Recommend that you check this thread:
    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=58628

    Usually the upgrade of a keyboard normal backlit keyboard doesn't have to be a big problem if there is an extra connector on the motherboard for a backlit keyboard.
    If this extra connector is not available, then you will NOT be able to use the keyboard backlight.

  • User profile service, you have been logged with the default for the system profile, please see the the event log for more information or contact your administrator.

    User profile service... Help... I'm stuck and going nowhere.

    Hello

    Whenever my user try to connect this MSG poping up to the top of any solution please.

    User profile service

    you have been logged on with the default for the system profile, please see the the event log for more information or contact your administrator.

    Click on this URL and follow the instructions 100% your problem has been resolved http: //support.microsoft.com/kb/947215

    Try it.

  • BlackBerry Smartphones transfer between Yahoo mail and Gmail service by default for the calendar

    Nice day

    I'm abandoned on the use of Yahoo Mail after 13 years.  I get expired and are having login problems and some of my messages have forwarded to my BlackBerry.  So I opted to use Gmail as my primary email provider and it has worked fine until now.

    I use the Outlook calendar on my phone and sync it with my Torch 9800 using the USB connection.  If I delete my Yahoo Mail as a sevice of default for the calendar, contacts and Messaing list and select Gmail as my default service how convert all my calendar and contacts with Gmail profile.  In fact, don't know if my list of contacts would be affected since I do not see the association from the list of contacts to my Yahoo Mail currently.   If I delete my Yahoo profile would be deleted my events or would they are transferred in the default calendar profile?  Or do I just sync it again with my vision and my events will be transferred to the Gmail profile after selecting the Gmail as my default service for the calendar and the contacts list.  I hope I explained this correctly.  I also have a profile on Facebook timeline showing birthday reminders, which I am trying to remove, but it is another problem.

    I want to do it right the first time and will not accidentally delete my events and contacts list.

    Thanks in advance.

    Prior to do any make a full backup of the device.

    I think that you can solve this problem by Gmail, default service. Then in the calendar app, go to Options. On the screen, enter the letters M O V E. Who should move all the events of the calendar by default. It's been a while since I've done it, though.

  • Error when parsing the file ' value of the 'src' attribute is not valid; must be a URI'.  ERROR (RSC-005) to "Hetgeheimfietsen.epub/OEBPS/toc.xhtml" (line 10, col 10): error while parsing the file ' "ol" element not allowed here; wait for the end-tag of t

    The members of the Forum kan help you

    Validation by using version 3.0.1 EPUB rules.

    ()https://github.com/IDPF/epubcheck( )

    December 9, 2015 15:27:33 THIS

    ---------------------------------------------------

    WARNING (OPF-007) to 'Hetgeheimfietsen.epub/OEBPS/content.opf' (line 2, column 227):

    Re-declaration of prefix reserved "rendition."

    ERROR (RSC-005) to "Hetgeheimfietsen.epub/OEBPS/toc.xhtml" (line 10, col 10):

    Error when parsing the file ' "ol" element not allowed here; waiting for the end-tag of the element or element "li" '.

    WARNING (CSS-007) to "Hetgeheimfietsen.epub/OEBPS/css/idGeneratedStyles_0.css" (line 60, col 2):

    Police made OEBPS/font/CambriaMath.ttc refers to fonts not standard type application/x-police-FTT.

    WARNING (PKG-012) to "Hetgeheimfietsen.epub/OEBPS/De_Alpe_d'Huez-1.xhtml":

    File name contains following non ascii characters: '. You want to change the name of the file.

    WARNING (PKG-012) to "Hetgeheimfietsen.epub/OEBPS/De_Alpe_d'Huez-2.xhtml":

    File name contains following non ascii characters: '. You want to change the name of the file.

    Check the finish with warnings or errors!

    In the file Toc delete the second "ol", as well as closing like Epubcheck duplicate codes

        the one after the other (delete the other)

    1. Navigate in Adobe Bridge CS6 - by default for the 64-bit version

      I have Adobe Bridge CS6 32-bit and 64-bit installed. I prefer to use the 64-bit version, but when I right click on a folder in Windows Explorer and choose 'Browse in Adobe Bridge CS6', always opens the 32-bit version. How can I do this by default for the 64 bit version? It doesn't seem to be a way to uninstall the 32-bit version.

      Editing your system registry on:

      HKEY_CLASSES_ROOT\Directory\shell\Bridge

      Change the path that points to the 32-bit version and set it to point to the location of the 64-bit version:

      C:\Program Files\Adobe\Adobe Bridge CS6 (64 Bit) \Bridge.exe '% '.

    2. Context for the cfelseif tag validation error

      I'm not sure what Miss me in the code here.  I get an error of validatiaon context for the cfelseif tag. Any help would be greatly appreciated.Code.JPG

      I guess that your done CFELSEIF part of a CFIF block who you wanted to just not show.

      Cannot start a block IF with CFELSEIF

    3. Preset for the keyword-tag in LR5

      Hello

      does anyone know how to preset the ticks in the AREA of keyword TAG?

      See the image below.

      20160113_Keyword-tag preset_a.jpg

      Reason: I would like to change the preset to: only graduation in the first box and the other two empty, while the automatic preset is / was all the three boxes checked as soon as I sign a new keyword.

      Would be a great help. THX

      The system that I use:

      MACBookPro 2.66 GHz mid-2010 with 8GBYTE of RAM

      LR 5.7.1

      OS X 10.11.2

      This means, that klicks change by exporting keywords and no way to set this configuration in the stone for the application?

      No, export a photo does not affect the default values for the keyword checkboxes.   The first three include on export, export containing keywords, and export synonyms, always default for new keywords to check.

      Over the years, many people have complained about the inability to edit several keywords at the same time and change these attributes, but Adobe did not act on these complaints.

    4. How to enable detailed interactive report view by default for the user public?

      Hi all

      I'm developing a page of search results.

      I'm doing a view instead of a default table view of interactive reports. So in this case I activated the details view so that I could make the fancy designs.

      everything worked well and looked clean but however when I pass the value of my search using IR_ROWFILTER page and clear the results page using page_noIRB, it brings me to the result page of interactive reports with the default table as point of view.

      I have to press the detailed view to get. I tried to save it as a default value, but it won't work. This question is for user public.

      If I do the page requires authentication, and record the detail by default view, I wouldn't have any problem. I could search and it will bring directly in to the detail view of the search page.

      of course, the other reason that I found is because im using the IR_ROWFILTER and by disabling the page using page_noIRB... without it, it works well, but I need it coz im making a a search result. I need to send the text to search for another page and put it in the filter to the search page. I would need to use the IRB to search again.

      is this a limitation to the user public? It happened for the authenticated user but...

      How can I make the default view for the user public?

      T101_cyberdyne wrote:

      How can I make the default view for the user public?

      Reverse the report for details on the loading of the page using a dynamic action of loading the Page with the following Execute the JavaScript Code real action:

      gReport.data.view('DETAIL');

      I'm doing a view instead of a default table view of interactive reports. So in this case I activated the details view so that I could make the fancy designs.

      Do you really need is an IR? Other that the layout of detail, do you need any of the interactive features? If not, try to use a standard report with a a report model custom.

    5. cfdocument will expire because of the img tag

      Hello, I have a similar problem once the user "Ken" has got:

      I programmed a script that generates a PDF file with tags HTML, nothing special. There are 2 tags included images, anyone looking at an image in the same directory, the other will ask a chart of http://img.cash.ch image

      On my local dev machine, everything works great, on production, everything WOULD have worked if it wasn't for tags 2 image. They are really problems. But once I have remove the tags of images, all working again, even on the production.

      Can someone tell me what is the problem here and how to solve?

      Here's the code. :

      Hello

      Try this work around for your first tag,.

      But as with the other tag,.

      That is to say,

      "http://img.Cash.ch/idcharts/MONTH3/#qArticleValors.Valor#-#qArticleValors.BC#-#qArticleVal ors.currencycode # .png ' >

      I'm not sure that the same workaround solution will do here, because you may explicitly download the image to your server, and then start again.

    6. regular expression for the xml tags

      Dear smart people of the labview world.

      I have a question about how to match the names of xml text elements.

      The image that I have some xml, for example:

      Peter

      13

      and I want to match all of the names of elements, that is to say: no, son, grandson, age, regardless of any attribute have these items. There is a regular expression, I can loop, that can do this? (Something like "\<.+\> ". "") It is no good because it matches the entire xml string.) I'd really only two different expressions, one for the match start elements, e.g. and one for the correspondence of the elements, for example.

      Thanks for your help in advance!

      Paul.

      The site Of regular Expressions will be very convenient.

      They have some good tutorials on regexp with a demo of the XML tags:

      Here is a small excerpt:

      The regular expression <\i\c*\s*>matches an opening of the XML without the attributes tag corresponds to a closing tag. <\i\c*(\s+\i\c*\s*=\s*("[^"]*"|'[^']*'))*\s*>corresponds to an opening with a number any attributes. Put all together, <(\i\c*(\s+\i\c*\s*=\s*("[^"]*"|'[^']*'))*| i\c*)\s*="">corresponds to an opening with attributes or a closing tag.  (source)

      If you want advanced XML analysis I suggest JKI XML toolkit.

      Tone

    7. Need to "Choose a delivery Option" by default for the first shipping option

      I need to know if there is a way to define the "choose a shipping Option" in the shopping cart automatically default to the first shipping option available instead of "Choose a shipping Option" being the default. My site is configured so that the user will have only 1 option shipping for any order submit it.

      Hello

      You could add a small javascript snippet to select the first option (or any delivery option, you need to have previously selected).

    8. Lack of physical schema by default for the DataServer name

      Hello

      I have two ODI environments:

      1. DEV - where all development activities are made and scenarios are generated here
      2. The other is TEST environment, in this context, we import DEV scenarios and run here, no source code is kept here.

      During execution of an interface on the TEST, I get below error, the same interface works very well in the DEV environment:

      Is the stage where the interface fails

      • Control - remove previous checksum

      A Tab:

      ODI-1228: failed task CUREBUILDINGSHUTDOWN (control) on the connection target Staging BAR BOSS.

      Caused by: java.sql.SQLException: parameter IN or OUT to missing index: 1

      at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)

      at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)

      at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:199)

      at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:263)

      Tab Code (Code that is put in check):

      delete, with the exception of getObjectNameDefaultPSchema ("L", "SNP_CHECK_TAB", "W"): lacking the physical schema by default for DataServer named ' BOSS of BAR of staging '

      where CATALOG_NAME = "

      and SCHEMA_NAME = 'BARBOSS.

      and ORIGIN = ' (2558001) Transactional_BARI.INT_BAR_OMP_BOSS_CUREBUILDING_SHUTDOWN'

      and ERR_TYPE = 'F'

      The interface is unable to recognize the physical schema of the database server. Even if only it is set correctly.

      The database server created the TEST is the same as that of DEV.

      I am unable to follow the reason for this kind of behavior.

      Any help wolud be very useful. Thanks in advance.

      Thank you

      Shilpa

      You can go to the topology

      In the physical Architecture select technology where the BOSS of BAR of staging is set the and check if at least one of the physical schema is marked as the default value for the root.


      Thank you.

    9. Google Code for the Remarketing tag

      I need to add google code in the < body > section of my pages. This is for Google Remarketing Tag.

      How do I do that in Muse?

      Hello

      Go to the Menu-> object-> insert as html and paste your code

      and that's what it should look like,

      Hope this helps

    Maybe you are looking for

    • latest version of the OS for Macbook Pro 7.1

      Dear users: My MackBook Pro 7.1 (Intel Core 2 Duo 2. 4 GHz, 4 GB RAM) works with 10.6.8 Snow Leopard OS, so, I can't put Java to its new version 1.7 or 1.8. This limits the compatibility with access to bank account and tax return to the Brazil softwa

    • Number of the icon of 'People '.

      I'm fairly new to Skype on iOS, but not Skype. I just noticed that the 'Contacts' icon to the left of all of the icons at the bottom of the screen has the number '1' in a circle orange on it. I hit the icon and looked at each item on the list, sought

    • Sedentary refund?

      So yesterday, I was issued a refund to a point that I bought it. I checked my account Transactions and he said that it is "established" I wondered what that meant because I have yet to see the money in my bank account. Thank you

    • New AIP-SSM10

      The interface GI 0/1 on the module SSM should be connected to the network in order to load the software updates IPS on that? I have configured the ASA interfaces already.

    • Passport BlackBerry vibrates every 30 seconds or so when a phone call, even with no notification

      Everything vibrates even when no new messages/texts/calls when during the call, the person on the other line can hear the vibration as well!