I am losing the image code when updating
-
Hello, I have a strange problem.
When I put in the first code below, it published as an edited image (from shareasale). When I update it, I lose the top code and get the second code. It literally disappears. I have spent hours on this. I called shareasale. They recognized the problem No help.<style>#shrs_MAP89946_target { margin: 5px; padding: 4px; border: 0px solid rgb(0, 0, 0); width: auto; height: auto; text-align: center; font-family: Arial, Helvetica, sans-serif; } #shrs_MAP89946_pagingDsp { text-align: center; font-size: 1.2em; font-weight: bold; } #shrs_MAP89946_pagingDsp ul.shrs_MAP89946_pagingList { margin: 5px 0px 0px; padding: 0px; } #shrs_MAP89946_pagingDsp ul.shrs_MAP89946_pagingList li { padding-right: 10px; display: inline; list-style-type: none; } #shrs_MAP89946_pagingDsp ul.shrs_MAP89946_pagingList li.shrs_MAP89946_currentPage { font-size: 1.3em; font-weight: bold; } #shrs_MAP89946_pagingDsp ul.shrs_MAP89946_pagingList li a { color: rgb(0, 82, 156); } #shrs_MAP89946_pagingDsp ul.shrs_MAP89946_pagingList li.shrs_MAP89946_currentPage a { color: rgb(0, 0, 0); text-decoration: none; } ul.shrs_MAP89946_productDspList li a.MAP89946_productNameLink { color: rgb(0, 0, 0); font-size: 1.1em; } .shrs_MAP89946_productDiv { margin: 5px; padding: 5px; border: 0px solid rgb(0, 0, 0); width: 267px; height: 220px; overflow: auto; font-family: Arial, Helvetica, sans-serif; vertical-align: top; display: inline-block; } ul.shrs_MAP89946_productDspList { margin: 0px; padding: 0px; } ul.shrs_MAP89946_productDspList { margin: 0px; padding: 0px; } ul.shrs_MAP89946_productDspList li { text-align: center; font-size: 15px; margin-bottom: 5px; list-style-type: none; } ul.shrs_MAP89946_productDspList li.MAP89946_pTitle { font-size: 1em; font-weight: bold; display: none; } ul.shrs_MAP89946_productDspList li.MAP89946_pThumb { } ul.shrs_MAP89946_productDspList li.MAP89946_pThumb a img { height: auto; max-height: 150px; max-width: 150px; } ul.shrs_MAP89946_productDspList li.MAP89946_pShortDesc { display: none; } ul.shrs_MAP89946_productDspList li.MAP89946_pDesc { display: none; } ul.shrs_MAP89946_productDspList li.MAP89946_pPrice { color: rgb(8, 82, 165); font-weight: bold; display: none; } ul.shrs_MAP89946_productDspList li.MAP89946_pRetailPrice { display: none; } ul.shrs_MAP89946_productDspList li.MAP89946_pSku { display: none; } ul.shrs_MAP89946_productDspList li.MAP89946_pImage { display: none; } ul.shrs_MAP89946_productDspList li.MAP89946_pManufacturer { display: none; } ul.shrs_MAP89946_productDspList li.MAP89946_pIsbn { display: none; } ul.shrs_MAP89946_productDspList li.MAP89946_pMerchantName { display: none; } ul.shrs_MAP89946_productDspList li.MAP89946_pPartnumber { display: none; } ul.shrs_MAP89946_productDspList li.MAP89946_pMerchantsubcategory { display: none; } ul.shrs_MAP89946_productDspList li.MAP89946_pCustomText { display: none; } ul.shrs_MAP89946_productDspList li.MAP89946_pImage a { color: rgb(0, 0, 0); font-size: 0.8em; text-decoration: none; } #shrs_MAP89946_largerImageViewer { border: 2px solid black; border-image: none; left: 35%; top: 50%; width: auto; height: auto; margin-top: -200px; display: none; position: fixed; z-index: 503; background-color: white; } ul.shrs_MAP89946_productDspList li span { color: rgb(94, 94, 94); margin-right: 5px; } ul.shrs_MAP89946_productDspList li span.MAP89946_lbl_productName { display: none; } ul.shrs_MAP89946_productDspList li span.MAP89946_lbl_thumbnail { display: none; } ul.shrs_MAP89946_productDspList li span.MAP89946_lbl_price { display: none; } ul.shrs_MAP89946_productDspList li span.MAP89946_lbl_shortDesc { display: none; } ul.shrs_MAP89946_productDspList li span.MAP89946_lbl_image { display: none; } ul.shrs_MAP89946_productDspList li span.MAP89946_lbl_manufacturer { display: none; } ul.shrs_MAP89946_productDspList li span.MAP89946_lbl_subcategory { display: none; } ul.shrs_MAP89946_productDspList li span.MAP89946_lbl_partNumber { } ul.shrs_MAP89946_productDspList li span.MAP89946_lbl_retailPrice { } ul.shrs_MAP89946_productDspList li span.MAP89946_lbl_sku { } ul.shrs_MAP89946_productDspList li span.MAP89946_lbl_isbn { } </style><script type="text/javascript">var shrs_empty =''; var shrs_MAP89946_loadSubPage = function (pageNum, aEl){ try{ var arrPage = shrs_getElementsByClassName(document.getElementById('shrs_MAP89946_target'), 'MAP89946_pagedDisplay'); var pageToshow = document.getElementById('MAP89946_page'+pageNum); var menuEl = document.getElementById('shrs_MAP89946_pagingListEl'); var dspCurrentPage = document.getElementById('shrs_MAP89946_pagingDspCurrentPage'); for (var i=0;i<arrPage.length;i++) arrPage[i].style.display = 'none'; pageToshow.style.display ='block'; var arrMenuList = menuEl.childNodes; for (var i=0;i<arrMenuList .length;i++) arrMenuList[i].className = 'shrs_MAP89946_notCurrentPage'; dspCurrentPage.innerHTML = pageNum; if(aEl.parentNode) aEl.parentNode.className = 'shrs_MAP89946_currentPage'; }catch(err){} };shrs_getElementsByClassName = function(node, classname) { var a = []; var re = new RegExp('(^| )'+classname+'( |$)'); var els = node.getElementsByTagName("*"); for(var i=0,j=els.length; i<j; i++) if(re.test(els[i].className))a.push(els[i]); return a;};</script><div id="shrs_MAP89946_target"><div id="MAP89946_page1" class="MAP89946_pagedDisplay"><div id="MAP89946_502959341" class="shrs_MAP89946_productDiv"><ul class="shrs_MAP89946_productDspList"><li class="MAP89946_pThumb"><a href="https://www.shareasale.com/m-pr.cfm?merchantID=44341&userID=745041&productID=502959341&afftrack="><img src="https://www.sunburstsuperfoods.com/product_images/r/649/607macarootpowder__39474_zoom.jpg" onerror="this.src='https://www.sunburstsuperfoods.com/product_images/r/649/607macarootpowder__39474_zoom.jpg'; this.onerror = '';"></a></div><div style="clear:both;"></div></div><div id="shrs_MAP89946_largerImageViewer"></div></div>
This is the second code.
After I update, this is what I am left with and the image is back to the original size
Where doe the code go???<script type="text/javascript">// <![CDATA[ var shrs_empty =''; var shrs_MAP58817_loadSubPage = function (pageNum, aEl){ try{ var arrPage = shrs_getElementsByClassName(document.getElementById('shrs_MAP58817_target'), 'MAP58817_pagedDisplay'); var pageToshow = document.getElementById('MAP58817_page'+pageNum); var menuEl = document.getElementById('shrs_MAP58817_pagingListEl'); var dspCurrentPage = document.getElementById('shrs_MAP58817_pagingDspCurrentPage'); for (var i=0;i<arrPage.length;i++) arrPage[i].style.display = 'none'; pageToshow.style.display ='block'; var arrMenuList = menuEl.childNodes; for (var i=0;i<arrMenuList .length;i++) arrMenuList[i].className = 'shrs_MAP58817_notCurrentPage'; dspCurrentPage.innerHTML = pageNum; if(aEl.parentNode) aEl.parentNode.className = 'shrs_MAP58817_currentPage'; }catch(err){} };shrs_getElementsByClassName = function(node, classname) { var a = []; var re = new RegExp('(^| )'+classname+'( |$)'); var els = node.getElementsByTagName("*"); for(var i=0,j=els.length; i<j; i++) if(re.test(els[i].className))a.push(els[i]); return a;}; // ]]></script> <div id="shrs_MAP58817_target"> <div id="MAP58817_page1" class="MAP58817_pagedDisplay"> <div id="MAP58817_502959341" class="shrs_MAP58817_productDiv"> <ul class="shrs_MAP58817_productDspList"> <li class="MAP58817_pThumb"><a href="https://www.shareasale.com/m-pr.cfm?merchantID=44341&userID=745041&productID=502959341&afftrack="><img src="https://www.sunburstsuperfoods.com/product_images/r/649/607macarootpowder__39474_zoom.jpg" alt="" /></a> </div> <div style="clear: both;"></div> </div> <div id="shrs_MAP58817_largerImageViewer"></div> </div>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘I am losing the image code when updating’ is closed to new replies.