• Page 1 of 3
  • 1
  • 2
  • 3
  • »
Forum moderator: bigblog  
uCoz Community » For Webmasters » Custom Solutions » Hide and Show Content
Hide and Show Content
helte26
Posts: 201
Reputation: 0

Message # 1 | 9:12 PM
hello again to all admin and ucoz user i have problem how to create Using Javascript to Hide and Show Content example i have videos and the down of videos how to watch and i click the how to watch the small fame is showing the sample this click the link i have mesage and the down how to watch http://i.imgur.com/w35keV3.png and after click how to watch the mesage showing check the link http://i.imgur.com/YEEKVIB.png i hope you help me thank you to all admin and ucoz user


part 2 after click

Added (2015-10-11, 9:12 PM)
---------------------------------------------
this content i found other website only

Attachments: 2084176.png (473.8 Kb) · 9920500.png (484.3 Kb)
Post edited by helte6213 - Sunday, 2015-10-11, 9:09 PM
joexyz
JOE-vascript
Posts: 1770
Reputation: 78

Message # 2 | 2:21 PM
helte6213, paste the content which should be hided/showed between
Code
<div id="howTo" style="display: none;">

and

</div>

Paste this before </body>:
Code
<script type="text/javascript">
function howtowatch() {
    var info = document.getElementById("howTo");
    if(info.style.display == "none") {
     info.style.display = "block";
   } else {
  info.style.display = "none";
    }
}
</script>


And finally the link should be this:
Code
<a href="javascript://" onclick="howtowatch();">How To Watch?</a>


Demo: Click here



hey i'm joe and i do not work for the company anymore, please contact other staff or tech support
icon by ch-chau

sometimes i lurk here
helte26
Posts: 201
Reputation: 0

Message # 3 | 6:55 PM
wow boss you are the great nice tutorial very easy my problem now this posible 2 colum example how to watch? and the other side report link
Post edited by helte6213 - Monday, 2015-10-12, 6:59 PM
joexyz
JOE-vascript
Posts: 1770
Reputation: 78

Message # 4 | 9:23 PM
helte6213, yes, you can put a report link right after "How To Watch". I would personally recommend using a report script, which can be found here: http://ucoztaska.net/szkript....lentese - you will need to translate both the codes and the script file (entry_report.js). If you need help in translating, you are free to ask me.
hey i'm joe and i do not work for the company anymore, please contact other staff or tech support
icon by ch-chau

sometimes i lurk here
helte26
Posts: 201
Reputation: 0

Message # 5 | 11:38 AM
boss i cant understand not english i think rusian language please traslate and english thank you biggrin biggrin biggrin biggrin

Added (2015-10-13, 11:38 AM)
---------------------------------------------
also the downlink of js report and the inside is other language very dificult to edit i hope u can help me thanks

joexyz
JOE-vascript
Posts: 1770
Reputation: 78

Message # 6 | 3:27 PM
helte6213, I will translate it as soon as possible.
hey i'm joe and i do not work for the company anymore, please contact other staff or tech support
icon by ch-chau

sometimes i lurk here
helte26
Posts: 201
Reputation: 0

Message # 7 | 9:29 PM
bigblog, boss you can translate to me bcoz the explain thre is already translate the problem i have some litle explain and google translate i cant understand i hope you cant translate to me thanks
Post edited by helte6213 - Tuesday, 2015-10-13, 9:29 PM
joexyz
JOE-vascript
Posts: 1770
Reputation: 78

Message # 8 | 12:27 PM
helte6213, the translation has been finished: http://ucoztaska.net/english....-script Enjoy!
hey i'm joe and i do not work for the company anymore, please contact other staff or tech support
icon by ch-chau

sometimes i lurk here
helte26
Posts: 201
Reputation: 0

Message # 9 | 1:36 PM
hello bossbigblog, i dont know whre found Control Panel » Design customization » Page with full entry text and associated comments because a lotof this and control panel whre the exact please give me screen shor thanks

Attachments: 3343113.png (149.0 Kb)
helte26
Posts: 201
Reputation: 0

Message # 10 | 2:09 PM
i try the folow the tutorial the pproblem not working i click the report entry not working please help me

Attachments: 6529712.png (41.7 Kb)
joexyz
JOE-vascript
Posts: 1770
Reputation: 78

Message # 11 | 2:09 PM
helte6213, you need to search the specific template for the required module. For example, if you want to show the complaint link in the Publisher module, you need to paste the code in the Page with full entry text and associated comments of the Publisher module.
hey i'm joe and i do not work for the company anymore, please contact other staff or tech support
icon by ch-chau

sometimes i lurk here
joexyz
JOE-vascript
Posts: 1770
Reputation: 78

Message # 12 | 2:10 PM
helte6213, give me an exact URL, please.
hey i'm joe and i do not work for the company anymore, please contact other staff or tech support
icon by ch-chau

sometimes i lurk here
helte26
Posts: 201
Reputation: 0

Message # 13 | 2:25 PM
bigblog, boss and the bottom part scroll down you found
http://www.wildpinoy.net/board/abs_cbn_news/tv_patrol/tv_patrol_oct_17_2015/11-1-0-1538

Added (2015-10-17, 2:25 PM)
---------------------------------------------
1. first upload the js folder and my ftp
2. second i put the link of js and the Page with full entry text and associated comments[color=red][/color]
3. 3rd i put this code wharever i want to show this code

Code
<?if($USER_ID$ != $UID$ && $USER_LOGGED_IN$)?>
<a href="javascript://" class="kn_mat" onclick="startCTM()">Report the entry</a>
<?endif?>

and the botom of that code
Code
<script type="text/javascript">  
var username = '$USER$';  
var ctmarray = [  
{'ctm':['Incorrect source',true,'Please post the correct source.']},  
{'ctm':['The download link is not working']},  
{'ctm':['Incorrect main picture']},  
{'ctm':['Copyright infringement',true,'$USERNAME$, please show us a proof.']},  
{'ctm':['I have another complaint',true,'$USERNAME$, please tell us what happened.']}  
];  
var ctmtmp = [  
'The following entry was reported: [b][url={URL}]{TITLE}[/url][/b][br]Content of the report: [color=#ff0000][b]{MOAN_MESSAGE}[/b][/color]',  
'[br]Additional information: [color=#38761D][b]{EXTRA_MESSAGE}[/b][/color]'  
];  
/*  
{URL} = The URL address of that entry from where the report came  
{TITLE} = The title of the entry
{MOAN_MESSAGE} = The text of the complaint
{EXTRA_MESSAGE} = Additional informations, if they are present
*/  
</script>  

  <script type="text/javascript" src="/js/entry_report.js"></script>

right?
joexyz
JOE-vascript
Posts: 1770
Reputation: 78

Message # 14 | 2:25 PM
helte6213, you didn't uploaded the script file.
hey i'm joe and i do not work for the company anymore, please contact other staff or tech support
icon by ch-chau

sometimes i lurk here
helte26
Posts: 201
Reputation: 0

Message # 15 | 2:28 PM
already upload bosss bigblog,
Attachments: 7277960.png (393.5 Kb)
uCoz Community » For Webmasters » Custom Solutions » Hide and Show Content
  • Page 1 of 3
  • 1
  • 2
  • 3
  • »
Search: