OS Property support center

icon Search properties

  • agnaldoneves
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 9 months ago #16842 by agnaldoneves
icon Search properties was created by agnaldoneves


How to insert icons in this module.
There is an example of how the code would be possible and what I do The change file.

Thank you.
Attachments:

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #16843 by Mr. Dam
Replied by Mr. Dam on topic Re: icon Search properties
Hi,
You can edit in the file :
modules > mod_ospropertysearch > tmpl > default.php

For example :
<b>BASIC DETAILS <a href="javascript:modOspropertySearchChangeDiv('basic_div')" id="abasic_div" style="text-decoration:none;">[-]</a></b>
You can replace [-] my image tag <img>
Remember you need to edit remain parts (details, address v.v.)
One more thing, you need to edit the js function, at the bottom of source page
function modOspropertySearchChangeDiv(div_name){
var div = document.getElementById(div_name);
var atag = document.getElementById('a' + div_name);
if(div.style.display == "block"){
div.style.display = "none";
atag.innerHTML = '[+]';

}else{
div.style.display = "block";
atag.innerHTML = '[-]';
}
}

Note:
atag.innerHTML = '[-]';

Replace [-] by image tag.

Good luck!
Dam

Please Log in or Create an account to join the conversation.

Moderators: Mr. DamNguyen Phu Quan