Hide A Code For Reposting Material?

Feb 25, 2009

so I want to set up some 'freebies' on my website... random verses and 'updating' content that I would like to change every so often, without the 'user' of the content (people reposting on their website) having to change the code every time (and without giving away the COMPLETE code)... am I making sense?I want to offer a different code in the 'textbox', where others grab the code than the complete 'building' code...:confused: I am so lost! :confused:I'm brand new at 'codes'

View 2 Replies


ADVERTISEMENT

JQuery :: Hide Code - Add Code To An External Js Sheet It Doesnt Seem To Work?

Jan 6, 2011

I am trying to hide this code:

HTML Code:

using this code

HTML Code:

This works fine when I place this code under the html in the main source, but if I try to add this Jquery code to an external js sheet it doesnt seem to work?

Currently my js sheet is called in the header, when I move this link to the footer of my page the code works again, so Im guessing this has something to do with where the jquery code is placed in relation to the code Im trying to hide?

How I can keep my js in the header but still make the content disappear on click?

View 2 Replies View Related

Display Time In A Material Clock?

Sep 19, 2010

How can I draw a cookie where number of chocolate chips represents the number of seconds and the number of bites represents the number of minutes.

I want to show the passage of time on a clock that looks like items are being added to the display according to the number of seconds and minutes. Maybe using a mouse input aswell

View 1 Replies View Related

Ajax :: Useful Link To Download Some Material?

Feb 28, 2011

I need to learn ajax can i have some material to learn..

or give me useful link to download some material

View 2 Replies View Related

Data-Type Reference Material?

May 20, 2011

oes anybody know of a good reference document/source for data types that you can pass to a function, please? What I want to establish are the variety of elements that can pass data to a function in the following way:If you set a value to a table cell (<td>) then you retrieve it in the function thus:

function(row) by calling function(this).

I know that divs and spans can do this too, but how about images in a loop with unique names etc?

View 6 Replies View Related

Site That Is 2500 Width So That When The Page Loads Can Either Scroll Right Or Left To View The Out Of Screen Material?

Nov 15, 2010

Im having a bit of an issue with a website im building for a band.The band want a site that is 2500 width so that when the page loads you can either scroll right or left to view the out of screen material...i cant find a way of the page loading centered...it is always loading to the far left and all i can do is scroll right...i have uploaded the site to http:[url].... for you to have a look at so you see what i mean.I origionally posted this thread in the CSS forum but was instructed this would be a Javascript issue.

View 1 Replies View Related

How To Hide Code

Apr 1, 2010

I have an issue with this directory/locator/finder thing we are building using Google Maps. Will allow you to locate (say) golf courses in your area or anywhere in the US. Anyway, we spent a bit of time adding all the latitudes and longitudes to show the markers on the Google map, and other information into all the javascript code. The problem is, I don't really want a competitor to be able to just find the js file or html or xml and copy it for their own site. So, is the only solution (to hide the information we've gathered) to do this via PHP

View 1 Replies View Related

Hide Source Code

Jul 23, 2005

It's possible to protect the source code of a js file? With PHP?

View 15 Replies View Related

How To Hide Your Source Code?

Oct 6, 2004

"No right-click" scripts only end up annoying the users... Is it possible to hide the source code..... without showing the JavaScript source!!!!!

View 14 Replies View Related

Code To Hide An Object?

Aug 22, 2011

I have a very generic webpage that I created to attempt to show a rule that is used. I have used some drag and drop language that I found which enables me to drag and drop elements on the page. This is great. My problem is I have a total of 6 drag and drop items in two catagories. CML and nonCML. If one nonCML is used, I'd like two of the CML objects to disappear. (disappear could even be turning white to make them hidden). I'm very new to Javascript. Is there easy code that would say if an item from Catagory 1 is moved, have 2 items from Catagory 2 disappear?

View 7 Replies View Related

Konami Code And Show - Hide Div

Feb 2, 2010

I am creating a blog and I thought it would be cool to have the Konami code in it. Basically, I would like is to either show or hide a div when the code is entered. So lets say the Div is hidden, they would enter the code and it would then show. If it was entered while the div was shown, it would then hide. Is there any way to do this? I think there would be, but I don't know how to accomplish it.

Here's a link to the Konami code I'm using:

View 4 Replies View Related

How To Hide The Redirection Code In This Form

Jun 15, 2011

I am trying to figure out how to hide the direction page in this code:I want to hide: www.ipage.com/mail/index.bml

<INPUT TYPE="submit" NAME="Log In"
VALUE="Check Mail"
onclick="javascript:login.action='http://www.ipage.com/mail/index.bml?s=1';

[code]....

View 5 Replies View Related

Show Hide Span Code

Jan 19, 2005

I have this bit of code that shows and hides various spans and it works great in ie. It doesn't work in Newscape of Firefox - havn't tried it in Opera. How can I change this? Code:

View 5 Replies View Related

JQuery :: Use To Hide Code If Page Is Other Than Index.php?

Aug 19, 2010

So I'm making an ecommerce store and I'd want to hide a product scroller and a banner if the page is any other than index.php, and I know jQuery has the .hide function, but all the examples link it to a button/link/other but I don't understand how to code a conditional statement that hides the code if the page loaded is anything else than index.php.

View 2 Replies View Related

Jquery :: Condensing Show - Hide Code

Feb 28, 2011

I have these div tags, they're very similar but I just need to change the IDs.

Is there anyway to condense this code:

View 9 Replies View Related

How To Hide Script Code In View Source

Jun 2, 2010

I am passing an araryList from c# code to javascript, but if i do viewsource on page i can see the value of Array, is there any i can hide it, dont what the user to see the values of javascript array if userdoes view source on the opage

View 2 Replies View Related

Code For Show/hide Table Rows?

Dec 28, 2010

wrote me jvascript code for show/hide table rows.The situation is:

<table 1>
row 1
row 2
row 3[code]...

row 1 and row 4 are in one looping

row 2, row 3 ,row 5 and row 6 are in another one looping.The picture is like this:

1.when page load..

2.only row 1 and row 4 display

3.when row 1 is clicked row 2 and 3 will display

4.when row 4 is clicked row 5 and 6 will display

View 2 Replies View Related

Hide A Block Of Html Code In Page

Feb 5, 2011

I need to somehow hide this block of HTML code in my page. Now I have no control over the code as it comes from another site so there is no ID or anything. If the <a> or <td> tags had ID I could hide it with javascript.

Code:
<tr>
<td>
<center style="color: rgb(82, 87, 87); font-size: 10px;">Some Text <a target="_blank" style="color: rgb(82, 87, 87); font-size: 10px;" href="http://google.com/">google is good</a>
</center>
</td>
</tr>

View 6 Replies View Related

JQuery :: Remove (hide) Very Specific Line Of Code?

Oct 10, 2011

I have the following line of code in a page and I need to 'hide' the entire row [code]...

Is there a way to do that?

View 1 Replies View Related

Hide Script Login Password In Source Code?

Sep 19, 2009

I know nothing about javascript but I was able to handle the instructions to install the login/password feature: http://www.javascriptkit.com/script/script2/loginpass2.shtml

works great! however, when someone views the source code, they're able to see what the password is. additionally they can see the url of the page it would take them if they entered the password. how do i protect against this vulnerability?

View 10 Replies View Related

Open/hide Comment Editor In One Page Code?

Nov 11, 2009

I know that we can combine 2 pages into one, but i dont know what exact terms it called or say open and hide?

I have 2 pages, view.php and comment.php. inside view.php there will be a link to open comment.php. instead of doin this, i want to put the codes in one page call comment.php. i'm quiet sure that it using javascript, using id, onclick and sometimes called frames(not sure...) ?? but i dont know how to implement it. So can someone gimme any reference that i can refer to? example and solution aso can so i can get an idea on it.

View 3 Replies View Related

Independant JS Code For HTML Show/hide Divs

May 19, 2011

I'm trying to implement a show/hide toggle for each users profile field in the view body topic of my forum.

I found this thread here @ sitepoint which is close to what I'm working on, but the code I'm working with is different.

What I need are some changes to the JS so that each show/hide works independently, not just the first instance of the show/hide.

How do you call this HTML

Code:

With this JS to be independent?

Code:

I know that this would have bits of " $(function() and $(this) " but that's about all I know...

View 8 Replies View Related

Javascript Code To Hide/display Entry Fields On A Form

Jul 23, 2005

I am looking for a general purpose javascript snippet that enables me to
<div> or <span> HTML to make portions of the form be hidden and then appear.
The form contains about 12 sections and some sections can contain
subsections. When the user clicks on a checkbox, I want previously hidden
text boxes, radio buttons, text, drop down menus, and additional checkboxes
to appear. In some cases, clicking on a checkbox in a section can cause
additional previously hidden text boxes, radio buttons, text, drop down
menus, and additional checkboxes to appear.

Within each section, a list of individual names is displayed with an initial
checkbox beside each name being displayed. Clicking the checkbox beside a
name is what triggers the hidden info to be displayed. The server side
application is written in php and the field names are assigned using
brackets as the array is created. As an example the HTML checkbox beside
the first name <input type='checkbox' name='sect1custname[1]' value'First
Name'> The HTML for the next name woud be exactly the same except the name
field would be defined as name='sect1custname[2]'. All of the other input
buttons, boxes, menus, and text would use the same naming conventions so
that the server side module can correctly process the data.

I am hoping to keep this as generic as possible so that we can add, change,
and/or delete entire sections simply by creating the appropriate HTML and
surrounding it with the correct <div> or <span>. I understand that there
may need to be some javascript wrapped around the checkboxes.

If you know of , or have, or can develop the code, please send particulars
to jscott4272 at comcast dot net. If there are any costs associated with
the code, just let me know what they are. If you have any questions or need
additional information, please email them to me.

View 2 Replies View Related

JQuery :: Implementing Transitions Into My Current Hide() Show() Code?

Aug 23, 2011

Im developing a site for my company that will contain relevant information on sites we serve (such as login details, passwords, addresses etc). It is available locally on our intranet due to the fact we have login details and such.

Anyway on the sidebar of my site (which is run on Wordpress), I have all the sections for the sites.

When a user clicks item #1, it expands and shows all the sites in that area.

The one problem is that when the sections are clicked on, they just expand in a very plain boring way.

I need it so that there is some sort of smooth transition between opening and closing the <div> sections.

Here is the current code I have now (I tried to edit as much of the comments as possible so it will make sense):

<script>

I found it on google, and modified it without having to change anything on the sidebar itself, just a simple paste to the head section.

This code also hides other currently open sections, so that only one may stay open at a time.

View 1 Replies View Related

JQuery :: Show / Hide Method With Embed Code Inside DIV

Oct 15, 2009

I found an issue with using embed code and jquery's show()/hide () method. I am using embed code inside of a div. So it looks something like this:
<div id="test">
<embed>
whatever here
</embed>
</div>

Now on that I want a user to be able to click a button to show/hide the content. So I create a function like this:
<script type="text/javascript">
function showEmbed(){
if($("#test").show()){
$("#test").hide();
} else {
$("#test").show();
}}
</script>

I then binded that to just a basic text link:
<a href="javascript:void(0);" onclick="showEmbed();">show/hide</a>
Now that works fine as far as showing/hiding the embed code. However, there is one issue with this. When I click the link it reloads the data. I do not want it to reload the data. Say for instance there is a video playing in there. If you click the link it will stop the video
and when you click it again to show it will start again. How to get it not to reload the data.

View 9 Replies View Related

JQuery :: Converting Standard Show/hide Code To Plain JS?

Sep 18, 2011

I have to do in plain JavaScript something that I'm much more used to doing in jQuery.. this is for a standard tabbed-content show/hide div switcheroo.. here's the jQuery code:

$('.tabs a').click(function(e) {
e.preventDefault();
$('.tab_content_wrapper').hide();[code]....

'this' evidently does not refer to the element that was clicked on...also, can you refer to elements by their class name? also, is it possible to do event-binding in plain JavaScript w/o using individual id's for the clicked-on elements?

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved